Visual Studio代码-自定义单词分隔符 [英] Visual Studio Code—Customizing word separators

查看:255
本文介绍了Visual Studio代码-自定义单词分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以自定义( ie ,在 settings.json 中)用于分隔Visual Studio中的单词和标记的字符集码?我指的是用于控制行为的字符集,例如 Alt + Alt +

崇高文本支持设置文件的 word_separators 选项会使用诸如 ./ \()'-:,。;<>〜!@#$%^& * | + = [] {}〜? 。代码是否支持类似功能?

解决方案

自2月更新以来,v0.10.10 (2016年2月),现已添加单词导航和单词分隔符
截至今天,您可以查看更新公告单词导航和单词分隔符下的中更新了#_editor rel = noreferrer>此处,但是在下一个发行版之后,URL可能会更改为 ...我根据以前的版本进行此假设。



您的设置文件现在包含一个用于编辑单词导航和单词分隔符的区域

  //进行与单词相关的导航或操作时将用作单词分隔符的字符
editor.wordSeparators:`〜!@#$%^& *()-= + [ {]} \\ |;:'\,。<> /?,


Is there a way to customize (i.e., in settings.json) the set of characters used to delimit words and tokens in Visual Studio Code? I'm referring to the set of characters used to control the behavior of actions like Alt+Left, Alt+Right, or double-clicks when navigating text.

Sublime Text supports a "word_separators" option for settings files that take a set of characters like "./\()"’-:,.;<>~!@#$%^&*|+=[]{}~?". Does Code support a similar feature?

解决方案

As of the February update, v0.10.10 (February 2016), word navigation and word separators has now been added! As of today you can view the update announcement here under "Word navigation and word separators", but after the next release the url will probably change to this... I make this assumption based on previous releases.

Your settings file(s) now contain a section for editing word navigation and word separators

// Characters that will be used as word separators when doing word related navigations or operations
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",

这篇关于Visual Studio代码-自定义单词分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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