Reputation: 1483
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.
Upvotes: 23
Views: 12921
Reputation: 338
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]
Upvotes: 9
Reputation: 35269
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.
Upvotes: 20
Reputation: 717
I had the same problem because of Winamp Global Hotkeys. Just remove that key combination from Winamp Preferences and it will work.
Upvotes: 1
Reputation: 2338
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} }
Upvotes: 10