Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually?
PDT allows you to quickly and easily comment and uncomment code by selecting a line or a block of text and tagging it as a comment. Comments can be added to single lines of code (Ctrl + /) or blocks of code (Ctrl + Shift + /).
Keyboard Shortcut for Adding HTML Comments The shortcut is Command / for Mac users or Control / for Windows and Linux users. To add a single-line comment, just hold down the combo of keys shown above inside the code editor. Then the whole line you're on will be commented out.
I think the shortcut in English keyboards is just CMD + / Select the code you want to comment out then press CMD + k then CMD + c. To remove the comment, press CMD + k then CMD + u. Try with Ctrl + Shift + A, it worked for me.
Use the keys Ctrl K, C to comment out the line and Ctrl K, U to uncomment the line. Show activity on this post. From your screenshot it appears you have ReSharper installed.
There are shortcuts you can use for adding comments – and you'll probably end up using them a lot. The shortcut is Command / for Mac users or Control / for Windows and Linux users. To add a single-line comment, just hold down the combo of keys shown above inside the code editor. Then the whole line you're on will be commented out.
The keyboard shortcut to comment code in VSCode is CMD + Shift + 7 (in a Spanish keyboard) but it doesn't work in codesandbox.io. I think the shortcut in English keyboards is just CMD + / Select the code you want to comment out then press CMD + k then CMD + c. To remove the comment, press CMD + k then CMD + u.
If you have the Source
bundle installed:
⌘/
If you don't, go to TextMate
> Preferences
> Bundles
and check Source
.
⌘/
comment/uncomment selection
shift + ⌘ + 7 or instead 7 the key with the slash "/"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With