ぁ詠遠∝僾妳 发表于 2016-11-29 10:31:05
您需要 登录 才可以下载或查看，没有帐号？立即注册
Rich IntelliSense on jQuery ajax() function
IntelliSense based on JSDoc
When the default type inference does not provide the desired type information, type information may be provided explicitly via JSDoc annotations. For example, to give a partially declared object a specific type, you can use the @type tag as shown below:
This is also very useful for specifying parameter information. Using the JSDoc @param tag you can add types to function parameters like so:
See this doc on github for the JSDoc annotations currently supported.
IntelliSense based on TypeScript Declaration Files
ES6 and JSX Syntax Support
ES6 syntax in Visual Studio 2017 RC
In addition to official language updates, there are also unofficial language extensions like JSX , an XML-like extension that is popular in React development, that call for more flexible syntax support. Visual Studio 2017 supports both jsx and tsx file extensions as well as JSX syntax dropped directly in JS and TS files.
JSX syntax in Visual Studio 2017 RC
In addition to language specific improvements, you will also benefit from several general code navigation improvements. Go To, a completely new navigation feature, allows you to quickly perform complete searches to find types, functions, files, and more. Results can be filtered down based on category, to provide a single location for fast code navigation.
Navigation with Go To (ctrl + t or ctrl + ,)
When working with large projects or libraries, often the number of results in completion lists can get quite large. To help you quickly cut down the size of these lists, you can now filter the completion lists by categories such as functions and properties. All of these filters can be quickly toggled with logical hotkeys, which can be easily discovered by hovering over the filter button icons in IntelliSense.
IntelliSense filtering on functions (alt + m)
To read more about the above improvements and get an overview of all the general productivity improvements coming in Visual Studio 2017, check out this post by Mark Wilson-Thomas on Productivity Improvements in VS 2017 RC .
Bowden Kelly , Program Manager, VS Client
上一篇：Productivity in Visual Studio 2017 RC
下一篇：4 no-bull takeaways from Microsoft quantum computing