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?
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?
For sublime text 2 - consider the answers above such as Bart & Robert's solution
For sublime text 4 (and likely 3) - you can create custom keybindings that differentiate between moving and selecting without any extra functions. You just need to set the extends option appropriately. For example, here's my Default (linux).sublime-keymap file:
[
{"keys": ["super+left"], "command": "move_to", "args": {"to": "bol", "extend": false}},
{"keys": ["super+right"], "command": "move_to", "args": {"to": "eol", "extend": false}},
{"keys": ["super+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true}},
{"keys": ["super+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true}}
]
Note how the only difference above is in how I set extends: false for moving only, but for moving and selecting I set extends: true. If you want to support both moving and selecting, from my experience so far you need to have both custom lines in there.