Home Download Buy Blog Forum Support

Jump to end after auto-pairing?

Jump to end after auto-pairing?

Postby TheTriumpH on Mon Aug 22, 2011 8:15 pm

Hey, started trying out Sublime the other day. Really liking it so far.
However there is one feature i'm missing from other editors.

If I write "[", Sublime ofcourse adds the "]" automatically and I can write what's supposed to be in between.
However, in other editors i've gotten used to be able to press the TAB key after finnish writing inside the brackets (or any other auto-pairing characters/snippets) to "jump out" of the auto-paired part.

The feature I describe above may not sound like much, but I really feels much smoother when used to it.

Is this feature already available and i'm just missing it? Otherwise maybe you could add something similar in a future release.

Thanks for a great programming tool, i'm still trying it out but I feel confident already that this is the one and that i'll be buying a license in no time.
TheTriumpH
 
Posts: 1
Joined: Mon Aug 22, 2011 8:10 pm

Re: Jump to end after auto-pairing?

Postby fataki on Tue Sep 13, 2011 12:48 pm

+1

Had this on Eclipse, very useful.
fataki
 
Posts: 1
Joined: Tue Sep 13, 2011 12:47 pm

Re: Jump to end after auto-pairing?

Postby alexrussell on Tue Sep 13, 2011 6:21 pm

Does this do a "jump out of all"-type jump out too (in your other editors)? If not, it should if/when Jon implements it.

As an example, in PHP you regularly need to address associative arrays by doing something like:
Code: Select all
echo $_GET['param'];
It'd be great if, when you type
Code: Select all
echo $_GET['
and you get
Code: Select all
echo $_GET['|']
that the 'tab' key will jump out of both sets, i.e., to
Code: Select all
echo $_GET['text']|
and so on for even further nested brackets.

At the moment I just use the 'end' key and it's good for most cases, but it can bite you if editing an existing line (say add a clause at the beginning of an if statement).
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Jump to end after auto-pairing?

Postby jps on Wed Sep 14, 2011 7:42 am

There'd be a conflict with auto complete though: at the point of pressing tab, there'd usually be text to the left of the caret, and the current behavior is for tab completion to kick in at this point.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Jump to end after auto-pairing?

Postby skunkbad on Fri Oct 28, 2011 2:05 am

You could use the "end" key
skunkbad
 
Posts: 13
Joined: Wed Oct 26, 2011 5:30 pm

Re: Jump to end after auto-pairing?

Postby jbrooksuk on Fri Oct 28, 2011 10:01 am

skunkbad wrote:You could use the "end" key

But what if I'm typing my code within a current line?
jbrooksuk
 
Posts: 771
Joined: Sun Apr 11, 2010 10:37 am
Location: England


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 36 guests