I've been trying to get column selection via keyboard bindings working on Windows.
The Default (Windows).sublimekeymap says this:
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },
And it is also documented here: http://www.sublimetext.com/docs/2/column_selection.html However, every time I try to do column selection via the keyboard it doesn't work. Is this an environment specific problem or an actual bug? Or perhaps I'm doing something wrong.
Assuming you are getting multiple cursors when you go up in a block of text with Ctrl+Alt+Up, you then need to use Shift+Left and Shift+Right to make the column selection.
If you are not getting multiple cursors at all, try changing the keybindings just to up
and down
, see if that works. It may be that your windows environment is using Ctrl+Alt+Up` for something else and prevents its use in Sublime.
Not the right spot for this exactly, but if you RDP into a VM, the defaults won't work either.
I've redefined the line reordering binding of Ctrl+Shift for this purpose
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }
I think that is really late but, I found the following the most effective solution.
Put this in your "Key bindings defaults" and save it
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
After, you can use the following to make a column selection
Alt + Shift + [Down | Up]
Alt+Shift+Up
to select the text then you just let go of Alt
and keep holding Shift
and select the columns of text you want using Left
/ Right
icc97 2014-10-28 11:05
I had the same problem because of Winamp Global Hotkeys. Just remove that key combination from Winamp Preferences and it will work.