Idea VIM: Keystroke to exit quotes after autocompletion?

Dumb question, though I have searched a bit.  Turned up a good deal on "mangled quotes" and turning auto quotes off (and folks asking to turn off adding end single quotes in Java), but not this.  I must be missing a key search term.

So I'm typing...

<table border="0"

When I get to "bo" I can hit [tab] and end up with the cursor after the first quote with PhpStorm's autocomplete.  I type 0 and then the cursor is before the second quote.

What's the keystroke (other than right arrow) to leave the quote?  That is I want to get from border="0^" to border="0"^ without moving my hands from where they rest on the keyboard.  Possible?

TIA!

0

Cursor movement/Arrow Right?..

0
Avatar
Permanently deleted user

Well, like I mentioned, I'm looking for something faster than the right arrow.

More specifically, I'm hoping for something that doesn't involve moving my wrists from below the home keys to reach for the arrows.  Just as context, I use the Idea VIM plugin -- not moving my hands or touching my mouse makes me (feel?) more productive.

I've used IDEs in the past that allow you to tab or ctrl-tab out of quotes, so even if I'm in the middle of, say...



(pretending the cursor is represented by "^")
... there would still be a shortcut to get the cursor down to...

^

I can do it by jumping out of insert mode in the VIM plugin, but hoped there was an easier/quicker way.  The arrow keys force you to move your wrists too far.  Seems trite, but when you're programming, faster input == more productivity, I think.

Thanks though.

0

"I use the Idea VIM plugin"

You should really start your request with this line or better include it in subject.
I'll forward your request to the people involved in its development and support.

0
Avatar
Permanently deleted user

That I use the plugin is more context than crucial, I think.  Does PhpStorm have such a shortcut when the plugin's *not* installed?  It'd be a huge timesaver.

And I've noticed that PhpStorm seems to follow the standard keyboard shortcut routine when in insert mode.  If there's such a shortcut in PhpStorm *without* the plugin, I bet I get some good trickle-down.

Or are you saying that there's a yet unnamed shortcut that the VIM plugin breaks?

Thanks for the reply.  If anyone knows of a "step out" key-combo within the plugin, that still works!  ;)

Thanks again.

0

Nope. And I can't imagine shortcut shorter than Cursor Right key - for a normal editor, not a VI.

0
Avatar
Permanently deleted user

All good, and thanks for the responses.  I'd make a request to have PhpStorm handle the use case explained above...




(pretending the cursor is represented by "^")
... there would still be a shortcut to get the cursor down to...

^



Is it Netbeans that does that in the Editor module?  It's been a while; I can't remember.  It is, at times, very useful.  And, fwiw, I am, in fact, a paid user. ;)  I really enjoy PhpStorm.  When my worst complaint is something this minor, you're doing pretty much everything right!

Thanks again.

0
Avatar
Permanently deleted user

I know this thread is way stale, but I've been hunting high and low for a resolution to it and haven't found it.

Thought I'd chime in anyway, though, and say I heartily agree--the ability to hit the TAB key and jump outside the auto-completed parentheses, bracket, brace, etc., would be fantastic. Reaching for the TAB key is much easier than the stretch for the right-arrow key, and Aptana Studio has had this feature for a long time. (Don't know about Netbeans....)

Anyway, that's my two cents. I love PHPStorm and the addition of this feature would make it about as close to perfect for me as any IDE could be. While it may not be a minor thing to implement, I couldn't agree more with R Bailey--you've really gotten it all right.

Thanks!

1
Avatar
Permanently deleted user

Ha, thanks for the "upvote".  It really is all about minimizing keystrokes.  As an analog, I really enjoyed using VB6 not for the language so much as the excellent autocomplete in the IDE.  It was like writing in shorthand.

PhpStorm gets verrrrrry close.  But traveling to the right-arrow is like heading to the other side of the world when you're trying to type quickly, and in my experience, " isn't always captured correctly.  The times I've had to fix three double-quotes from typing that last " too quickly is really piling up.

Oh well.  Hasn't scared me away from using PhpStorm daily.  ;)

1
Avatar
Permanently deleted user

I'll join this discussion! I am, too, looking for a solution to this!
Hope, next version of phpStorm inherits that functionality - or at least a custom keystroke assignment feature for that.

Thanks!

0
Avatar
Permanently deleted user

I use ctrl+right-arrow to jump over words. This is much faster than plain right-arrow...

1
Avatar
Permanently deleted user

l am looking for the same shortcut ... how to exit quotes in Webstorm 11

0
Avatar
Permanently deleted user

I'd love to see solution for this myself.  One workaround that I've found is actually typing out the closing quote, bracket, or what-not.  It sort of does away with the benefit of the auto-typed closing separator (it simply overwrites it with the same character), but for me it's faster than moving my hand to the arrow keys.

0

Are you typing in VIM emulation mode? 

0

For anyone who comes to this super late, here are the answers to two different questions that popped up in this thread.

To turn off the auto-typing of closing tags (e.g. both brackets {} are input when pressing just the open bracket { , works for (),[],{},<>, and " " pair quotes):

File -> Settings -> Editor -> General -> Smart Keys 

Then deselect the options that currently say "Insert paired brackets (),[],{},<>" and "Insert pair quote"

To Jump cursor outside closing bracket/quote without moving from home position(now enabled by default with Tab):

Same location in settings as above, make sure "Jump outside closing bracket/quote with Tab when typing" is checked.

0

请先登录再写评论。