简体   繁体   中英

Visual Studio 2017 does not show collapse icon for js file

VS 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:

在此处输入图片说明

In theory, there should be a "global" setting for this, like there is for other languages (eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM