I am using Inno Setup 5 (Unicode).
How can a block of statements be commented/uncommented using keyboard shortcut keys?
To comment blocks of code (under the [Code]
section) use:
{ commented code }
or (* this is comment *)
The Inno Setup Compiler IDE does not support shortcut keys for inserting comments.
The correct comment character is a semicolon - like this:
; This is a note
You can use other methods - however, they will show as underlined in red. But a semicolon with nothing to the left of it (except white space) will turn the line green.
So if you have a line like this:
Source: distrib_v2.9\vcredist_x86.exe; DestDir: {sys}; Flags: ignoreversion 32bit;
and you put a semicolon in front of that line like this:
;Source: distrib_v2.9\vcredist_x86.exe; DestDir: {sys}; Flags: ignoreversion 32bit;
Then the entire line turns green as a comment.
There is no shortcut key that I know of. Since it is only one character, I don't think a shortcut key is needed.
Note that the left and right curly brackets {} are used for constants in Inno Setup. I do not recommend that you use them for comments. An example is {app} or {sys}. These are not treated as comments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With