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.

+3


source to share


3 answers


I recently applied this package, although I'm not sure if there is a hotkey: https://atom.io/packages/sublime-style-column-selection



+1


source


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.

+1


source


The menu command Selection —> Split into Lines

should do what you want. On a Mac, the keyboard shortcut cmd-shift-l

.

+1


source







All Articles