ID : 20348
viewed : 18
Tags : atom-editoratom-editor
According to this, cmd + / should do it.
And for Windows and Linux, it is ctrl + /.
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.
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!
Also, there are packages:
Pressing (Cmd + /) will create a single line comment. i.e. // Single line comment
// Single line comment
Type (/** and press the Tab key) to create a block comment ala
/** * Comment block */