Commenting out code blocks in Atom

ID : 20348

viewed : 18

Tags : atom-editoratom-editor

Top 5 Answer for Commenting out code blocks in Atom

vote vote


According to this, cmd + / should do it.

And for Windows and Linux, it is ctrl + /.

vote vote


Atom does not have a specific comment-block function, but if you select more rows and then use the normal ctrl-/ (Windows or Linux) cmd-/ (Mac), it will comment all the lines.

vote vote


Command + / or Ctrl + shift + 7 doesn't work for me (debian + colombian keyboard). In my case I changed the Atom keymap.cson file adding the following:

'.editor':   'ctrl-7': 'editor:toggle-line-comments' 

and now it works!

vote vote


Also, there are packages:

vote vote


Pressing (Cmd + /) will create a single line comment. i.e. // Single line comment

Type (/** and press the Tab key) to create a block comment ala

/** * Comment block */

Top 3 video Explaining Commenting out code blocks in Atom