All we know that there is a shortcut for commenting a line CTRL+/
on PCs and so on so forth.
Since many languages permit for commenting blocks of code with special delimiters, say %-
and -%
, (Multiline comments would fall into this category some times), I would like to know whether ATOM.IO is able to do that.
For instance CTRL+/
would toggle to comment all the highlighted lines, whereas what I aim for is to have a shortcut for commenting the blocks such that
x = 30 <this is my comment highlighted by <>>
<this is another comment> y = 2 <x,y are just variables>
assert(x + y == 32) <and this is a
multiline highlighted comment
which I want to toggle to comment>
and after hitting, for instance CTRL+ALT+/
x = 30 %-this is my comment highlighted by <>-%
%-this is another comment-% y = 2 %-x,y are just variables-%
assert(x + y == 32) %-and this is a
multiline highlighted comment
which I want to toggle to comment-%
I don’t see any particular difficulty on implementing this since special characters, such as ()
, {}
, or $$
(in LaTeX), already do exactly when typed.