How to make a multi-line cursor without using a mouse in Sublime text 3?

The only way to make a multi-line cursor in Sublime text 3 is Ctrl + Shift + RC + Drag. Is there a way to do this without using a mouse?

+7
source share
4 answers

Yes there is. Using Shift or Shift , select the lines on which you want to include multiple cursors. Then press Ctrl Shift L to split the selection into lines. Finally, pressing will place the cursors at the beginning of the lines, and will put them at the end.

Edit

There is another, faster way (thanks to minitech) - Ctrl Alt / will create several cursors without first making the selection, and you can place the cursors anywhere on the line you want. However, on Windows, these keyboard shortcuts can be displayed to change the screen orientation. To change this, press Ctrl Alt F12 to open the Intel control panel, press Options and either reassign the screen orientation hot keys, or press Off on the left side to disable them all.

+21
source

You can also use the middle mouse button.

Press and hold the middle mouse button and drag up and down

+9
source

Standard key bindings do not work for me (Ubuntu 16.4 and Win 10), but after overriding it works fine! To override the default keyword bindings, use (Preferences-> Key Bindings)

{ "keys": ["alt+shift+down"], "command": "select_lines", "args":{"forward": true} } will add the cursor below , { "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} } will add the cursor over .

+3
source

MAC: control (^) + Shift + up / down arrow

0
source

Source: https://habr.com/ru/post/1203804/


All Articles