Selecting text including $ in Sublime Text 3

I'm a former Netbeans user who finally came out of the dark into the light and started using Sublime Text 3.

I personally adore this editor, but there is one rather tiny but annoying thing. When you double-click any part of the text, ST3 selects a whole word. If this is a variable name (that is - $

at the beginning), it does nothing, it still selects only the word. Netbeans (and probably many other IDEs) selects the word + in this case $

.

Is there a way (macro, snippet, key binding) that I could achieve the same in Sublime Text 3?

+3


source to share


1 answer


When you double-click any part of the text, Sublime Text selects the words. The $ character, which is considered a word separator.

Fortunately, you can change this behavior by modifying stse_separators stting in Sublime settings. So, remove the $ character from the word_separators parameter and save the new parameter in your user preferences (Preferences> Preferences - User). This is the original setting (found in Settings> Preferences - Default) with the $ symbol already removed:



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

      

+5


source







All Articles