Press Alt+4 or click Rectangle , then drag on the canvas. Everything inside the rectangle is selected.
Full guide: Selection Modes › Rectangle Selection