-
Notifications
You must be signed in to change notification settings - Fork 0
Code Comments
Iury O. G. Figueiredo edited this page Feb 19, 2026
·
1 revision
Escs allows built-in keystrokes to comment programming code. It is made using the code_comments module.
The following languages are supported.
table = {
'.py' :'#',
'.java' :'//',
'.c' :'//',
'.sh' :'#',
'.js' :'//',
'.cpp' :'//',
'.html' :'//',
'.go' :'//',
'.rb' :'#',
}
The dictionary containing the values is defined in the module.
code_comments.table
It is simple to add support for new languages for such just update the comment string type in regard to its language file extension.
In order to comment or uncomment lines it demand to have code to be selected.
First select the region of code that you want to comment then press the following keystroke in Extra mode.
<Key-c>
For uncommenting code just select the region that is commented then press the keystroke below in Extra mode.
<Key-C>
Note: In order to get in extra mode just press.
<Alt-v>
It works in Main mode (i.e) regardless of the minor mode Escs is in.