Selecting multiple lines in Atom
Solution 1:
If I understand your question correctly, you want to select multiple lines and create a cursor at the end of each line. There are a couple ways you can achieve this:
- Using Split Into Lines
- Highlight multiple lines however you like.
- Use the
Selection|Split Into Lines
command (Cmd+Shift+L on OS X or press Cmd/Ctrl+Shift+P and typeSplit Into Lines
) to split the multiline selection into a selection for each line. - Press the right arrow by itself to reveal the cursor at the end of the selections.
- Using Add Selection Below
- Position the cursor on the line above the first line you want to select
- Use
Selection|Add Selection Below
to add as many lines with cursors as you want - Use normal cursor positioning commands to place the cursors where you want
Solution 2:
I am big fan of Sublime Text 3, Atom is really nice but can't beat Sublime :)
Well, you can give a try to make "Your Favorite Sublime Key 'CTRL+SHIFT+L'" within ATOM to get Multi Line Selection with multi cursor:
File > Keymap...
Paste below code and smile :)
'atom-text-editor':
'ctrl-shift-l': 'editor:split-selections-into-lines'
Save and Close Tab. Open any file and Press "CTRL+SHIFT+L
". Now magic :D, Press Arrow key and You will see Multiple Cusor on Selected Lines.
Solution 3:
For Ubuntu you can use shift-alt-up/down