3 ms·
Doesn't every editor have a "comment" hotkey? I can't remember the last time I typed block comment characters in any language. cmd-/ in IntelliJ.
by stickfigure 4y ago
Doesn't every editor have a "comment" hotkey? I can't remember the last time I typed block comment characters in any language. cmd-/ in IntelliJ.
- solardev 4y agoI don't want to make the whole line a comment. I just wanna add a comment where the language don't want me to.
- stickfigure 4y agoSelect the fragment you want to comment out, then hit cmd-/. It doesn't have to be a whole line.
- nicoburns 4y agoMine doesn’t work very well in JSX blocks. Partly because I don’t think there is any way to insert a comment inside a JSX tag (to comment out an attribute).
- ncphillips 4y agoIt is possible: <Button // id=“commented-out” onClick={doSomething} />