To select a rectangular piece of code, drag your mouse while pressing Shift+Alt (on Windows and Linux) / Shift+Alt (Option) (on macOS).