Adds a column selection command to Sublime Text similar to VSCode's shift + alt + click.
Via Package Control. Search for VSCodeColumnSelection.
Clone this repository into your Sublime Text's Packages directory. Easy.
cd /path/to/Sublime Text/Packages
git clone https://github.com/acheronfail/VSCodeColumnSelection.gitThis package aims to add the VSCcode-like column selection commands to Sublime Text. While it aims to mimic as close as possible the behaviour of VSCode, there is a slight limitation (see L13-23). Other than that, it works a treat!
Place a cursor anywhere, and then shift + alt + click where you want the bottom right of the column selection to end. Best explained with a gif:
This package adds the command "column_selection". If you want to map it to a different mouse command, then you need to add that in your sublime-mousemap like so:
{
"button": "button1",
// Remap command to shift+super
"modifiers": ["shift", "super"],
"press_command": "column_selection"
}- Doesn't work with wrapped lines
- Unfortunately, due to a limitation with Sublime's API this isn't feasible to implement at the moment.
- See the topic in forum.sublimetext.
- And feature request here.
