In Sublime Text 2, consider hyphen as part of word

后端 未结 3 1709
不思量自难忘°
不思量自难忘° 2021-02-01 04:00

How can I have a double-click on a word which contains a hyphen (dash) in Sublime Text 2 select the entire word, not just one part of the word delimited by the hyphen?

3条回答
  •  暖寄归人
    2021-02-01 04:50

    As @Intentss mentioned (i don't want it lost in the comments), if you only want to modify this behaviour for a specific file type:

    Preferences > Settings - More > Syntax Specific - User.

    or in my case

    Preferences > Settings - Syntax Specific

    and then edit the user version that shows up:

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

提交回复
热议问题