Code Styles - How to add section rule with multiple lines
Answered
I would like to insert multiple lines for the section rule and the line breaks are being stripped out and control characters (\n) are ignored. Also, I have tried using Live Template names and they are converted to comments and not processed.
Would like this:
//======================================================
// Public Members
//======================================================
But getting this:
//====================================================== // Public Members //======================================================
Thanks
Please sign in to leave a comment.
See the related issues:
https://youtrack.jetbrains.com/issue/IDEA-137926
https://youtrack.jetbrains.com/issue/IDEA-135236
Live template seems to work fine:
Live Templates allow for multiple lines, however, my issue is Live Templates in the context of using them in Section Rules. Since Section Rules do not seem to allow for multiple lines, I was trying a work around and defining Live Templates with the multi-line text.
However, Section Rules prepend comment notation // to the Live Template name and they do not get processed. For example, from the image above sect becomes //sect