Visual Studio 2017 does not show collapse icon for js file

南楼画角 提交于 2021-02-05 11:14:05

问题


Visual studio 2017 does not show function collapse icon for JS files. However, it highlights function and variable keywords.


回答1:


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:

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.



来源:https://stackoverflow.com/questions/60193395/visual-studio-2017-does-not-show-collapse-icon-for-js-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!