Jim Campbell
jwcampbell@gmail.com
Comment-out or uncomment a block of code.
sampo555
sampo_75 [at] windowslive [dot] com 2012.
Valto Wirkola
valto [dot] wirkola [at] yahoo [dot] com 2008, 2010
Tommi Vainikainen
thv [at] iki [dot] fi 2006.

# 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 plugin:

Press the menu button in the top-right corner of the window and select Preferences Plugins.

Select Code comment to enable the plugin.

# To create or remove a comment:

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

To add a comment, right click and select Comment Code, or press Ctrl M.

To remove a comment, right click and select Uncomment Code, or press Shift Ctrl M.

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.