Making shortcut for fast semicolon


#1

Is there any way of typing ctrl + ; and making atom editor write semicolon to the end of current line?


#2

The init file of Atom can contain coding that makes it possible. Click on the documentation link on this page to see the flight-manual and api description.

If you make the functionality clear, someone might offer more help.

  • what action if cursor not at end of the line?

    • does it remain in place or move to the next line?

    • which newline characters?

  • what is the action if code is selected?

  • what is the action if several cursors exists?

  • what action if semicolon already in the line?

  • what action if cursor at the end of the line?