New Surround With (Ctrl+Alt+T) behavior. Do you like it?

If I am not mistaken behavior has changed. Now it offers list of possible
expressions on the line to surround. So we have to pick something first from
a list which sometimes is pretty long and wide. I wonder if it is possible
to have two separate surrounds actions on two different keyboard
shortcuts - one to act as it does now and the other one taking current line
(or selected block of course) to surroun with. In 95% of cases I use it for
if/else, less for try/catch and loops. Now 9 times out of 10 I have to
scroll through the list to pick complete line. Often I cant even say which
one it is because selection list truncates lines. To me it is very annoying.
What do you think?


2 comments
Comment actions Permalink

And I have to add that the list is not even sorted by level expression
nesting. The outermost expression often is in the middle.

Alternatively to separate keystroke if cursor is on white space before or
after outermost expression could we just select the whole thing rather than
giving this list to select from?

"AlexR" <nospam@domain.com> wrote in message
news:gedmnn$4nu$1@is.intellij.net...

If I am not mistaken behavior has changed. Now it offers list of possible
expressions on the line to surround. So we have to pick something first
from a list which sometimes is pretty long and wide. I wonder if it is
possible to have two separate surrounds actions on two different keyboard
shortcuts - one to act as it does now and the other one taking current
line (or selected block of course) to surroun with. In 95% of cases I use
it for if/else, less for try/catch and loops. Now 9 times out of 10 I have
to scroll through the list to pick complete line. Often I cant even say
which one it is because selection list truncates lines. To me it is very
annoying. What do you think?



0
Comment actions Permalink

Hello AlexR,

As far as I know we do not have such a feature yet ;) We've done smart introduce:
Ctrl-Alt-V with expressions selection though.

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

If I am not mistaken behavior has changed. Now it offers list of
possible
expressions on the line to surround. So we have to pick something
first from
a list which sometimes is pretty long and wide. I wonder if it is
possible
to have two separate surrounds actions on two different keyboard
shortcuts - one to act as it does now and the other one taking
current line
(or selected block of course) to surroun with. In 95% of cases I use
it for
if/else, less for try/catch and loops. Now 9 times out of 10 I have to
scroll through the list to pick complete line. Often I cant even say
which one it is because selection list truncates lines. To me it is
very annoying. What do you think?



0

Please sign in to leave a comment.