Sublime Forum

How to change the scope of double-click text selection

#1

Hi,

I’m a Perl programmer and I’m trying to figure out how to change the double-click selection behavior so that it will automatically select not just my variable names, but the sigil prefix too.

So currently, for $varname, double-clicking will select just the text e.g. $varname
Ideally I’d like it to select the prefix too e.g. $varname

Same for @varname, and %varname.

Anyone know of a way to do this?

Thanks

Edit: I’m using Sublime Text 2 btw

0 Likes

#2

In your default file settings, you’ve got this option:

"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=]{}`~?",
Take the dollar sign out.

0 Likes

#3

That did the job!

Thanks very much for the swift reply :smile:

0 Likes