Commenting and Uncommenting Blocks of Code
Last modified: 12 April 2021Basics
You can comment or uncomment the current line or selected block of source code.
Commenting feature extends to all supported file types. For the custom file types, you can define line and block comments characters, as described in the section File type associations.
Commenting and uncommenting lines of code
Do one of the following:
On the main menu, choose Code | Comment with Line Comment.
Press Ctrl+/.
Commenting and uncommenting blocks of code
To add or remove a block comment, do one of the following:
On the main menu, choose Code | Comment with Block Comment.
Press Ctrl+Shift+/.
warning
The Ctrl+Shift+/ shortcut currently does not work on keyboard layouts that do not have a dedicated "/" key, such as some national ones.