Issues with Surround with command

When I use Surround with on block ending with comment line, braces are added to the line with comment and not (as expected) on the next line

example I got line
// some comment
I select only this line, do Ctrl+E + U and press 1 for 'if' surround

before this line is added if ()
at the end of this line is added "// some comment}"

Summary I can/t use Surround with on blocks ending with comment line


Another issue, if I use Surround with and select the #region , then unwanted empty line is added after the #endregion line. This should be fixed as well.

1 comment
Comment actions Permalink

Hello Martin
     Regarding the problems you've mentioned:
     1. I've created a bug-report here: http://youtrack.jetbrains.net/issue/RSRP-284322
     2. You can easily edit the #region surround template and remove the line at the end of template

Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.