Saturday 1 December 2018

How do I do multi-line editing in Atom editor?


I've been reading all over and I can't find anything on how to do this in Atom on Windows? And by multi-line editing, I mean being able to expand your cursor across multiple-lines, and being able to type, and that whatever you have typed replicates over all lines you have selected



Answer



IIRC, it is the same as it is with Sublime Text. Ctrl+Alt and then use the arrow keys to select additional rows. If using the mouse, then just the Ctrl key is used; the selected locations can be as required, the wouldn't need to be in any particular order.


Atom have a "flight manual" (user manual) with some more detail of the block editing here.




On a Mac when using the mouse, it would be the Cmd / ⌘ key instead of the Ctrl as on Windows.




Note:


On Windows, the Ctrl+Alt could be already mapped by the OS or the screen card drivers/utility to change the screen orientation, for example: CTRL + ALT + WINDOWS KEY + Up / Down


The same would apply on the Mac, e.g.: the Ctrl + Shift (as used in Sublime) is often mapped by the OS, so the functionality there takes preference.


In both cases the keybindings can be changed to something else to accommodate both (or turn off the OS, screen card short cuts).


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...