Skip to Content

Toggling comments in the properties file editor

Estimated Reading Time: 1 Minutes

It is easy to add and remove comments when editing in the isCOBOL IDE.

You can use the buttons on the toolbar - they are, in order, Add Comment, Remove Comment and Toggle Comment

To comment a block, highlight the lines you want to comment before clicking on the button or using the key shortcut.

You can also use the Keyboard shortcuts.
For instance to toggle a comment, click on a line or lines and press Ctrl+* (Ctrl+Shift+8)

This and other keyboard shortcuts can be set in the Keys panel.
From the IDE's main screen, click on Windows in the menu, then Preferences -> General -> Keys. "Toggle Comment" is in the Cobol Source category.
You can add shortcut keys to Add and Remove comment as well. This example shows "Ctrl+Shift+A" to add comment marks to the highlighted lines, and "Ctrl+Shift+R" to remove the comment marks from the highlighted lines.

Toggling comments in the properties file editor