Visual Studio 2017不显示js文件的折叠图标 [英] Visual Studio 2017 does not show collapse icon for js file
问题描述
Visual Studio 2017不显示JS文件的功能折叠图标.但是,它突出显示了功能和可变关键字.
Visual studio 2017 does not show function collapse icon for JS files. However, it highlights function and variable keywords.
推荐答案
通过从编辑"菜单中选择概述"项,然后选择开始",可以为当前文档启用概述".自动大纲",如下所示:
You can enable 'outling' (as it's called) for the current document by selecting the "Outlining" item from the "Edit" menu, and choosing "Start Automatic Outlining," as shown below:
理论上,应该为此设置一个全局"设置,就像其他语言一样(例如, Options-> Text Editor-> C#-> Advanced
,然后打开文件时进入概述模式"),但是,对于JavaScript,在当前版本中,这似乎是一个错误":请参见
In theory, there should be a "global" setting for this, like there is for other languages (e.g. Options -> Text Editor -> C# -> Advanced
then "Enter Outlining mode when files open") but, for JavaScript, this seems to be a 'bug' in the current release: see this Developer Community post.
这篇关于Visual Studio 2017不显示js文件的折叠图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!