Sublime Forum

Go to end of quotes/brackets/etc from snippet

#1

So letā€™s say I have a snippet that fills in the following code:

describe "autofill" do

end

That sets my cursor highlighting ā€œautofillā€. Great, so I start typing and replace ā€˜autofillā€™ with ā€˜monkeysā€™, then I want to either move my cursor inside the ā€œdoā€ block, or I want to skip to the end of the quotes. How is this done? I know I can either just type the quotes, or I can press ā€œendā€ to go to the end of the line, or just move the cursor keys. I feel like thereā€™s another way to do this, or should be, and iā€™m just not getting it. Another example.

object.format( datetime.time ( "when?" ) ) 

Where the cursor is highlighting 'when?".

So once I fill in, say ā€œyesterdayā€, how do I get it to skip to the end of the parenthesis without reaching all the way over to the ā€œendā€ key?

Thanks!

0 Likes

#2

Press TAB?

0 Likes

#3

You have got to be kidding meā€¦ I tried every key comboā€¦ except the most obvious one.

Thanksā€¦

0 Likes

#4

No worries :wink:

0 Likes