Sublime Forum

Double Click Smart Selection?

#1

Is there a setting I can change for this? When I double click inside of the quotes normally OS X selects everything in the quote, but if you have - in it, it only selects to the dash. Since I’m trying to edit HTML I want it to select everything in the quotes… Or when I double click a hex color #ffffff if selects “ffffff” how can i make it select "#fffff

Does this make any sense?

0 Likes

#2

Believe this has to do with the “word_separators” setting. If you want to ignore the dash as a word separator you can add the following to your syntax specific settings, which can be opened by being in a HTML file and selecting Preferences -> Settings - More -> Syntax Specific - User. I just removed the dash from what is found in the default settings.

"word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=]{}`~?"
0 Likes