双击以选择与break相关联的单词

Mic*_*hal 1 sublimetext sublimetext2

我正在使用Sublime Text 2,当我双击与下划线连接的单词时:

this_is_it
Run Code Online (Sandbox Code Playgroud)

它会自动选择整个短语,但是当单词与break符号连接时,如下所示:

this-is-it
Run Code Online (Sandbox Code Playgroud)

它只会选择一个单词,如何设置Sublime Text来选择整个短语?

lee*_*sei 5

"word_separators"在用户中修改Preferences.sublime-settings,默认为:

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

由于-在大多数编程语言中为零,因此它包含在默认分隔符中.您最好修改特定Plain text.sublime-settings于语法的文件(例如)以满足您的需要.

http://compscientist.com/post/28272180856/word-separators