Search code examples
selectshortcutsublimetext2

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


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?


Solution

  • 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