More comfortable code completion

There are some Java IDE's out there that I've played with (I think Eclipse and maybe NetBeans) that provide a keyboard shortcut for jumping the cursor to various convenient locations after performing a code completion. For example, if your cursor is left between the parentheses in something like "new MyClass();" you can hit tab to jump to the end of the line, after the semicolon. I really enjoyed this feature and was wondering if there's something similar in ReSharper.

3 comments
Comment actions Permalink

Hello Rhywun,

It is interesting idea. I quickly mocked up such feature and have several
questions about it usability. Can you tell from your experience in other
IDEs, how it should work? For example, if there is not defined behaviour
for the specific location, should it merely insert TAB into the text? What
about indentation, should it simply indent/unindent if invoked inside first
whitespace on the line? How does it handle so called "table layout" for variables
and fields?

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> There are some Java IDE's out there that I've played with (I think
IR> Eclipse and maybe NetBeans) that provide a keyboard shortcut for
IR> jumping the cursor to various convenient locations after performing
IR> a code completion. For example, if your cursor is left between the
IR> parentheses in something like "new MyClass();" you can hit tab to
IR> jump to the end of the line, after the semicolon. I really enjoyed
IR> this feature and was wondering if there's something similar in
IR> ReSharper.
IR>


0
Comment actions Permalink

Isn't this feature similar to the "SmartEnter/CompleteStatement" feature of
IDEA (and hopfully by 4.0, Resharper)?


"Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
news:76a2bd0b144ed28c9ca9d9f15c1d8@news.intellij.net...

Hello Rhywun,

>

It is interesting idea. I quickly mocked up such feature and have several
questions about it usability. Can you tell from your experience in other
IDEs, how it should work? For example, if there is not defined behaviour
for the specific location, should it merely insert TAB into the text? What
about indentation, should it simply indent/unindent if invoked inside
first whitespace on the line? How does it handle so called "table layout"
for variables and fields?

>

Sincerely,
Ilya Ryzhenkov

>

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>

IR> There are some Java IDE's out there that I've played with (I think
IR> Eclipse and maybe NetBeans) that provide a keyboard shortcut for
IR> jumping the cursor to various convenient locations after performing
IR> a code completion. For example, if your cursor is left between the
IR> parentheses in something like "new MyClass();" you can hit tab to
IR> jump to the end of the line, after the semicolon. I really enjoyed
IR> this feature and was wondering if there's something similar in
IR> ReSharper.
IR>


0
Comment actions Permalink

Hello Paul,

I remember about Complete Statement, don't worry :)
As for suggested feature, it is quite different from Complete Statement.
Suggested feature would work on already written code, and sometimes may be
on incomplete code, but it shouldn't insert anything into the code. It's
more like "WordNext" (Ctrl-RightArrow), but should "sense code". For example,
it should skip the whole generic type construct, rather than stop on each
angle bracket. And, probably, it should go through complete expression which
is argument to the method call, rather than stop on each operator and operand.


These are all just vague ideas, though.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


PB> Isn't this feature similar to the "SmartEnter/CompleteStatement"
PB> feature of IDEA (and hopfully by 4.0, Resharper)?
PB>
PB> "Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
PB> news:76a2bd0b144ed28c9ca9d9f15c1d8@news.intellij.net...
PB>
>> Hello Rhywun,
>>
>> It is interesting idea. I quickly mocked up such feature and have
>> several questions about it usability. Can you tell from your
>> experience in other IDEs, how it should work? For example, if there
>> is not defined behaviour for the specific location, should it merely
>> insert TAB into the text? What about indentation, should it simply
>> indent/unindent if invoked inside first whitespace on the line? How
>> does it handle so called "table layout" for variables and fields?
>>
>> Sincerely,
>> Ilya Ryzhenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>> IR> There are some Java IDE's out there that I've played with (I
>> think
>> IR> Eclipse and maybe NetBeans) that provide a keyboard shortcut for
>> IR> jumping the cursor to various convenient locations after
>> performing
>> IR> a code completion. For example, if your cursor is left between
>> the
>> IR> parentheses in something like "new MyClass();" you can hit tab to
>> IR> jump to the end of the line, after the semicolon. I really
>> enjoyed
>> IR> this feature and was wondering if there's something similar in
>> IR> ReSharper.
>> IR>


0

Please sign in to leave a comment.