howto change cursor position after code completion?

So I'm trying to speed up my usage of IntelliJ code-completion (by, you know, actually using it).

If I type the following sequence:


I'm left with an IDE cursor located here:


In other words, I now have to move my hands off the home row and hit the -> arrow key to get the cursor into a part where I can start typing again, say for the next attribute like 'align' or 'valign'.

I know that I can simply type a closing " character, and the IDE is smart enough to simply over-write the one that is already there. But I'm wondering if there's a way to get the IDE to place the cursor outside the attribute that was just auto-completed.

2 comments
Comment actions Permalink

Hello Mike,

There is no way for users to change this behavior, but you can post a JIRA
issue asking us to make the standard behavior of our completion smarter in
this case.

So I'm trying to speed up my usage of IntelliJ code-completion (by,
you know, actually using it).

If I type the following sequence:

 < t d [space] c (class is now highlighted) [enter] [ctrl-space] (a
> list of possible CSS classes) [pick one and enter]
> ]]>

I'm left with an IDE cursor located here:



In other words, I now have to move my hands off the home row and hit
the -> arrow key to get the cursor into a part where I can start
typing again, say for the next attribute like 'align' or 'valign'.

I know that I can simply type a closing " character, and the IDE is
smart enough to simply over-write the one that is already there. But
I'm wondering if there's a way to get the IDE to place the cursor
outside the attribute that was just auto-completed.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.