Sublime Forum

How can I select the inner text?

#1

Hello,

I’m wondering how can I select the text between double or single quotes? (Vim’s ci" equivalent)

Thanks.

0 Likes

#2
vi"
0 Likes

#3

I found about Sublime a few hours ago so not sure where can I type that. Please clarify.

0 Likes

#4

Sublime Text has Vi emulation (implemented in the Vintage package), but it’s disabled by default. Go to Preferences | Global Settings - User in the top menu and make sure you have this in there:

	"ignored_packages": ""],

Now you should be able to use many Vi commands.

If you don’t want to use Vintage, you can press Ctrl+Shift+Space and the selection will expand to the current scope. Strings normally have their own scope, so the whole string should be selected (probably including the quotation characters themselves).

0 Likes

#5

Thank you very much for the Vintage package. I didn’t know about it.

I actually checked all the selection menu shortcuts before posting. It turned out having Command + Space to change the keyboard layout to another language was conflicting with Ctrl+Command+Space on Mac.

0 Likes