Home Download Buy Blog Forum Support

expand_selection on scope

expand_selection on scope

Postby monobotsoft on Mon Jan 06, 2014 12:12 am

expand_selection on scope.

Using this command inside quotation marks it expands including the quotation marks, but when using it inside brackets for example the selection expands untill inside the brackets.

I think the correct behaviour is the second one, why it behaves diferently? is there some config im missing?
Code dreamer
monobotsoft
 
Posts: 22
Joined: Sun Jan 05, 2014 2:09 am

Re: expand_selection on scope

Postby MattDMo on Mon Jan 06, 2014 2:37 am

Depending on the language syntax you're using, the string scope includes the quotation marks. Brackets are generally used to enclose other scopes, but most of the time are not a part of that scope, so they are not selected when using this command. The behavior that you are seeing is the behavior that should be expected.

If you want to select the contents of strings, but not the quotes themselves, consider installing the Expand Selection to Quotes package (it's marked ST2 only, but works without modification on ST3).
MattDMo
 
Posts: 36
Joined: Thu Jan 17, 2013 3:15 am
Location: near Boston


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], ToddFiske and 25 guests