Sublime text 2 - column select till the end of the line

alexy2k picture alexy2k · Aug 2, 2012 · Viewed 27.9k times · Source

Is there any way to select column with keyboard shortcut and expand selection till the end of each line?

Currently, when cursor reaches the end of the line it jumps to the beginning of the next one.

How can I avoid this behavior without using mouse?

Answer

José Luis picture José Luis · Aug 2, 2012

If I've understood your question correctly, you can do that with the following keys (example with OS X keybindings):

  1. Ctrl + Shift + Up or Ctrl + Shift + Down to select a column in multiple lines.
  2. Cmd + Shift + Right (Shift + End on other OS's) to extend the selection up to the end of each line.

The related keybindings for all OS's: http://www.sublimetext.com/docs/2/column_selection.html