Surround with Region does not position cursor correctly

When I select a section of code and then Ctrl - Alt -J, Surround With
Region,
the cursor does not position after the #region statement to allow for easy
naming of the region. The focus seems to leave the current document upon
completion of the command.

I am using Build 238

Also, some feature requests:
Keyboard command to navigate between regions?
Show the region name when hovering over the #endregion statement (similar to
what happens when hovering a closing brace.)


3 comments
Comment actions Permalink

Hello Jeff,

The problem with "Surround with #region" doesn't reproduce for me. Are
you using the standard #region template? Could you give me an example of
code where it happens? And, better yet, open a request in the tracker to
make sure we don't lose your request.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When I select a section of code and then Ctrl - Alt -J, Surround With
Region,
the cursor does not position after the #region statement to allow for
easy
naming of the region. The focus seems to leave the current document
upon
completion of the command.
I am using Build 238

Also, some feature requests:
Keyboard command to navigate between regions?
Show the region name when hovering over the #endregion statement
(similar to
what happens when hovering a closing brace.)



0
Comment actions Permalink

Oleg,
I tried this on another machine and it was not reproducible. This machine
was running 237.
I'm not sure it is related to the build, but that is the only obvious
difference.
Jeff
"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:55e7741642217f8c83d98e4b5fc17@news.intellij.net...

Hello Jeff,

>

The problem with "Surround with #region" doesn't reproduce for me. Are
you using the standard #region template? Could you give me an example of
code where it happens? And, better yet, open a request in the tracker to
make sure we don't lose your request.

>

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>> When I select a section of code and then Ctrl - Alt -J, Surround With
>> Region,
>> the cursor does not position after the #region statement to allow for
>> easy
>> naming of the region. The focus seems to leave the current document
>> upon
>> completion of the command.
>> I am using Build 238
>>
>> Also, some feature requests:
>> Keyboard command to navigate between regions?
>> Show the region name when hovering over the #endregion statement
>> (similar to
>> what happens when hovering a closing brace.)
>



0
Comment actions Permalink

Also ensure that your template has an $END$ tag in it, if you want it to end somewhere other than the default ending (which I think is directly after the last variable in the template?)

0

Please sign in to leave a comment.