Keep cursor selected until I hit escape


When you click on the div tag(or other) it will highlight the matching pair on the other side. If you move the cursor to another location it loses it.

What I am wondering is how can I create a package that will allow me to hit a key + click and it will leave the div tag and its matching tag selected until I hit escape or a hotkey?


You can create multiple cursors by using Cmd+Click on the Mac or Ctrl+Click on other platforms. Pressing Esc clears all but the most recent cursor or selection.

You can find out more about these kinds of things in the Atom Flight Manual: