Can I change default comment character for shell script? (Ctrl + /)
Answered
I'm currently working with GTKDialog and using the '##' as a pattern to identify comments inside code.
export MAIN="$(sed -e "s/##.*//" <<< "${XML}")"
XML is a variable where the code is stored.
The problem here is that Intellij Idea use a single '#' for comments in shell script when Ctrl + / shortcut is pressed.
Is there a way to change the default comment character when using Ctrl + /?
Here's a example:
#!/bin/bash
XML='
<window title="Jetbrains" icon-name="gtk-about" resizable="true" width-request="250" height-request="150">
## Comment
# Not a Comment because it would supress RGB color codes -> #0D48D2
<vbox>
<hbox space-fill="true">
<text>
<label>-</label>
</text>
</hbox>
</vbox>
</window>
'
export MAIN="$(sed -e "s/##.*//" <<< "${XML}")"
gtkdialog --program=MAIN --center
Please sign in to leave a comment.
Hi, no it's not possible, there are some related feature requests, for example https://youtrack.jetbrains.com/issue/WI-22696