Is there a keyboard shortcut to select a column for editing in Atom editor? -


scenario

when editing file in atom editor how select multiple lines same edit needs performed?

for example:

this.name  = name; this.age   = age; this.sound = sound; 

needs transformed into:

that.name  = name; that.age   = age; that.sound = sound; 

imagine there many of these lines, not want use find-and-replace because change more need.

question - there keyboard shortcut column selection?

is there sequence of keyboard shortcuts (preferably mac) can use to:

  • a) select initial word
  • b) select "column" (that word on several lines)

then apply change several lines @ once (in bulk)

i know how in sublimetext: http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/editing/editing.html#column-selection have tried many different key combinations without luck in atom , googling has proved fruitless...

there several ways achieve this:

keyboard

you can enable column selection mode using ctrl+shift+↑/↓. allow extend cursor multiple rows. once have selected rows, release keys, , use delete key remove text want replace. once you're done, press esc key release cursors.

note: will have disable mission control (key bindings) in os x use key combo.

how disable mission control (conflicting) key bindings (mac)

to open system preferences > mission control

enter image description here

locate key bindings mission control , applications windows:

mission-control-key-bindings

disable key bindings these two:

enter image description here

more details here.

mouse

if install sublime style column selection package, can use alt+mouse select columns in question.

more details here.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -