JavaScript Smart Tips in Visual studio 2017

Source: Internet
Author: User

1. Smart Tips

For the JS file in the API, if you need to let the Js file method can be in the JS file you write Smart Display, directly pull it into your JS file just fine.

For example, you want to refer to functions and functions in B.js in the A.js file you are writing. Very simply, you just have to pull the b.js file into your a.js file. At this point in your file

The top will display a line of content:///<reference path= ". /angular.js "/>.

That's it, the Smart Display is very comprehensive, just like you write your own class files, the inside of the comments are all displayed.

If someone has compiled the SDK JS API of a class library, then this kind of library to the development of the help is pretty big, smart tips greatly improve the efficiency of development, not old to check the SDK, because so many API really can't remember. But in the vs2017 this way fails, unable to drag into the JS file for reference.

The solution is to go to tools-Options-text editor-javascript/typescript-language service-to remove the check before enabling the new language service.

2 Debugging in VS2017 JS

(1) The effect of debugging in VS

When we turn on the Vs2017js debugging function, when we open the solution with VS2017, the following interface appears:

(2) Turn off VS2017 JS debugging function

Close Debug JS script in VS, can be unchecked in the following settings.

Starting the solution with VS2017, the following interface will not pop up, and when Chrome is turned off, the VS solution does not close

Reference articles

Workarounds for JavaScript not smart tips in Visual studio 2017

A sharp way to let JS files show IntelliSense in VS

Alan_beijing, "VS2017 new features" Debugging JavaScript scripts in VS

JavaScript Smart Tips in Visual studio 2017

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.