javascript-intellisense

Documenting arrays in JSDoc typedefs for VS Intellisense

不打扰是莪最后的温柔 提交于 2019-12-22 05:50:19
问题 In my VS2015 JavaScript app, I have a JSON object that I get from a REST API that I have documented using JSDoc @typedef comments: /** * @typedef {Object} JSON_Response * @property {Number} id * @property {String} name * @property {JSON_Response_Tag} tag */ /** * @typedef {Object} JSON_Response_Tag * @property {Number} id * @property {String} color */ When I reference this type in JSDoc comments on the methods that consume these JSON objects, I can get Intellisense documentation just fine: /*

How do I get JavaScript Intellisense from vsdoc file references in WebMatrix 2 Beta?

时光怂恿深爱的人放手 提交于 2019-12-18 17:31:07
问题 I copied a JavaScript file over from Visual Studio to a new WebMatrix 2 Beta project only to find out the vsdoc file wasn't being used for JavaScript Intellisense. /// <reference path="jquery-1.6.4-vsdoc.js" /> JavaScript's core functions do show up in Intellisense, but it doesn't appear to pull additional data from vsdoc files. Spoiler alert: I will be answering this myself to bring the answer from its current webmatrix.uservoice.com location to StackOverflow for anyone else with this issue.

How to reference multiple files for javascript IntelliSense in VS2010

让人想犯罪 __ 提交于 2019-12-18 03:01:59
问题 I have large solution with about 40 separate javascript files, which are referenced to web page via special js-service. I want to use new IntelliSense features in VS2010, but it is very hard to add about 40 individual references like this: /// <reference path="../../lib/jquery-1.3.2.js" /> to each js file in solution. Maybe there is some way to reference all files in folder? I've tried something like this: /// <reference path="../../lib/*.*" /> but it is not working... Thanks. Update: Maybe

How to enable Intellisense for JavaScript in Visual Studio Code

。_饼干妹妹 提交于 2019-12-17 18:34:35
问题 I want to use VS Code to try out the examples of a JavaScript book, but there's no intellisense, or at least I don't know how to activate it. In Visual Studio this feature works out of the box : But in VS Code, all I got is a message saying "There's no suggestions" What do I need to do to enable the intellisense in VSCode? Thanks. 回答1: Currently Unsupported JS intellisense doesnt work in HTML script tag - VSCode GitHub Issues #4369 Smart Javascript suggestions inside HTML files no loger

Intellisense doesn't work for JavaScript in Visual Studio 2012

别说谁变了你拦得住时间么 提交于 2019-12-17 05:25:09
问题 I have a clean, out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript (both jQuery, jQuery UI and other libraries) has disappeared. I believe it worked before and then for "no reason" it stopped. I've browsed the web as supposed to and discovered four discrepancies. I don't have the key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences in my registry. In fact, I don't even have

Intellisense doesn't work for JavaScript in Visual Studio 2012

人走茶凉 提交于 2019-12-17 05:25:08
问题 I have a clean, out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript (both jQuery, jQuery UI and other libraries) has disappeared. I believe it worked before and then for "no reason" it stopped. I've browsed the web as supposed to and discovered four discrepancies. I don't have the key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences in my registry. In fact, I don't even have

Intellisense while editing JS files

我是研究僧i 提交于 2019-12-13 09:37:48
问题 I am creating project in Visual Studio. While editing JS in a HTML file, since we have included the reference to all JQuery files on top, we get intellisense for jquery instances. But, when we are editing JS files, we don't get any intellisense at all! Is there any way to get intellisense there too? 回答1: Assuming you're talking about Visual Studio, try adding the following line to the top of your .js file. /// <reference path="~/path/to/your/jquery.js"/> Also, if you're using anything other

Why do I get Intellisense in vscode when using `require` but not when using `import`

别等时光非礼了梦想. 提交于 2019-12-13 01:24:47
问题 In VS Code, when I import jquery using import $ from 'jquery'; , Intellisense isn't working. This is what I get: However, when using the require syntax, const $ = require('jquery'); , Intellisense does work: This happens with any kinds of import, not only with jquery. Any way to make Intellisense work when using the import syntax? I am using typings. 回答1: This is know bug. https://github.com/Microsoft/vscode-react-native/issues/61 Fix is already available in Insiders build. Or you can wait

Visual Studio 2015 Angular Intellisense (Angular Material Design)

会有一股神秘感。 提交于 2019-12-13 00:52:53
问题 I am trying to get Intellisense for VS 2015 for Angular Material Design using the NuGet Package Console. Install-Package AngularJS.Intellisense I get the following error: Install-Package : Unable to find a version of 'AngularJS.Core' that is compatible with 'angular-material 0.8.3 constraint: AngularJS.Core (≥ 1.3.8)', 'AngularJS.Animate 1.3.8 constraint: AngularJS.Core (≥ 1.3.8)', 'AngularJS.Aria 1.3.8 constraint: AngularJS.Core (≥ 1.3.8)', 'AngularJS.Intellisense 1.0.3 constraint: AngularJS

Can I get intellisense for chrome apps and extensions?

帅比萌擦擦* 提交于 2019-12-12 10:09:46
问题 Is there any way to get javascript IntelliSense for developing Google Chrome apps and extensions in Visual Studio 2012? 回答1: You can include this file found at GitHub: chrome.intellisense.js place the file in the same directory as the file you are working on and add the following line at the top of your source file. /// <reference path="chrome" /> This also works in VS 2013 and should work in Visual Studio 2010 and 2013 as well, but is not tested. 来源: https://stackoverflow.com/questions