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