Jim Campbell jwcampbell@gmail.com Comment-out or uncomment a block of code. Code comment

Code comments are portions of text that make it easier for people to understand a program's code, but they don't affect how a program works. Comments are separated from other parts of a program by special characters.

The code comment plugin makes it easier to quickly create or remove code comments. To enable the code comment plugin, select geditPreferences PluginsCode comment.

To create or remove a comment:

Highlight the portion of text where you want to add or remove a comment.

To add a comment, click gedit Comment Code, or press Ctrl M.

To remove a comment, click gedit Uncomment Code, or press Shift CtrlM.

gedit will automatically use the correct style of comment based on the language or syntax of the file. If gedit doesn't identify your language or syntax, you can select it from the language list in the bottom Status bar.