Atom editor - multi-segment
I move from Sublime
to Atom
and can't find a specific hotkey for the life of me.
Control+D
will still do multi-select - select the next instance of your selected text, after which you will get multiple cursors.
In Sublime
, if you selected multiple lines and pressed control+shift+l
, then it would create a cursor on each line, so you could edit each line at once.
I have looked through the lists of hotkeys for Atom
and cannot find this. But then I probably don't know the correct terminology.
source to share
I recently applied this package, although I'm not sure if there is a hotkey: https://atom.io/packages/sublime-style-column-selection
source to share
For Windows users, the
keyword works by default ctrl + shift + up / down
.
For Mac users,
add the following custom code to bind to the /user/<yourName>/.atom/keymap.cson
file icon
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# change the keybinding for ADD SELECTION ABOVE / BELOW
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 'shift-alt-up': 'editor:add-selection-above'
# 'shift-alt-down': 'editor:add-selection`-below'
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then place the cursor where you want to start and press and hold shift + alt
and press up
or down
multiple times to increase the cursor as many lines as needed.
source to share