Commenting Code

Easy way to block select code and comment out like on Dreamweaver please

I’ve suggested this before. I think it would be a very useful feature - ideally with a keyboard shortcut.

1 Like

Try it with CTRL + /

1 Like

Thanks Patrick. That’s great. It even toggles.

Are there any other shortcut gems like this? I used to Shift+Tab to format a selection of code. This seems to have changed - and now indents the selection to the next/previous tab. Is there an equivalent of the formatting shortcut?

It also works with CSS files. A very minor issue: if you comment out a set of rules, comments within those rules will be deleted (which causes a problem if you then uncomment the set).