Sublime Text 和 Hypens 与下划线 [英] Sublime Text and Hypens vs Underscores

查看:91
本文介绍了Sublime Text 和 Hypens 与下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 sublime text 3 中遇到了连字符的问题,我正在寻求帮助.我希望它们的工作方式与下划线相同.

I'm running into an issue with hyphens in sublime text 3 and I was looking for some help. I'd like them work the same way that underscores do.

使用下划线,双击 word_one 会选择整个内容,同时使用键盘按 ctrl-right 跳转到下划线.

With underscores, double clicking on word_one selects the whole thing while using the keyboard with ctrl-right hops to the underscore.

使用连字符,双击 word-two 选择整个内容,但使用键盘与 ctrl-right 跳过整个单词.如果我将连字符添加到单词分隔符",则会切换行为(现在双击只会选择您单击的单词,但 ctrl-right 可以正常工作).

With hypens, double clicking on word-two selects the whole thing but using the keyboard with ctrl-right skips the entire word. If I add the hyphen to the "word separators" then the behavior is switched (double clicking now just selects the word you click but ctrl-right works properly).

任何帮助将不胜感激,谢谢.

Any help would be appreciated, thanks.

推荐答案

从 Sublime 用来定义单词的字符列表中删除连字符.这存储在您的首选项文件中.默认看起来像这样:

Remove the hyphen from the list of characters that Sublime uses to define what a word is. This is stored in your preferences file. The default looks like this:

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

如果你觉得超级懒惰,我在这里为你删除了连字符:

If you're feeling super-lazy, I've removed the hyphen for you here:

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

当然,您应该在您的用户设置文件中编辑它.您可以通过选择菜单Sublime Text->Preferences->Settings - User"打开该文件.

Of course, you should edit this in your User settings file. You can open that file by selecting the menu "Sublime Text->Preferences->Settings - User".

这篇关于Sublime Text 和 Hypens 与下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆