Answered by:
VS 2015 does not recognize Jquery - JavaScript at all

Question
-
Hi there. I have Windows 10, VS 2015
The problem is just that the IDE does not recognize javascript, Jquery, etc. It should turn blue when I werite "function" for example, but it doesn't happen.Also I open all the js files that I have and the IDE take it like regular txt files.
Is it something wrong? did I miss something?
Saturday, August 8, 2015 4:11 PM
Answers
-
If you have not installed in the default folder,then go to C:\Program Files (x86)\Microsoft Visual Studio 14.0 copy to your install folder(ex.F:\Microsoft Visual Studio 14.0)
open the Developer Command Prompt as administrator,run command:
devenv /setup
devenv.exe /InstallVSTemplates
Reference articles:http://blog.lishewen.com/post/2015/03/03/vs2015-ctp6-after-installation-without-javascript-intellisense-solution-templates-and-editor
http://stackoverflow.com/questions/28704964/visual-studio-2015-ctp-javascript-support-missing
Please mark as answer or vote as helpful if my reply does
- Edited by Rachit Sikroria Saturday, August 8, 2015 5:08 PM
- Proposed as answer by Rachit Sikroria Saturday, August 8, 2015 5:10 PM
- Marked as answer by LuisNY Saturday, August 8, 2015 5:13 PM
Saturday, August 8, 2015 5:07 PM
All replies
-
http://blog.craigtp.co.uk/post/Javascript-jQuery-Intellisense-in-Visual-Studio-2012
Go to menu Tools -> Options -> Text Editor -> JavaScript -> Intellisense -> References and place a reference to the intellisense files for the version of jQuery you are using in the Implicit Web group.
OR
place an "add reference" to the intellisense file in the _references.js file which you can add to the
Scripts
folder of your project./// <reference path="jquery-1.8.2.js"/> /// <reference path="jquery-1.8.2.min.js"/> /// <reference path="jquery-1.8.2.intellisense.js"/>
Though this will only provide intellisense for the project you are in, the first will for any open JavaScript file, not just the ones in the project you are in.
To get the latest jQuery files with intellisense use the NuGet package installer which by default will create a scripts folder and place the jQuery version.js, the min.js and intellisense.js files into... From there you can copy them to the location most of the Microsoft references are placed in, which is typically:
install-package jquery
in the package manager console.C:\Program Files (x86)\Microsoft Visual Studio 11.0\JavaScript\References
Please mark as answer or vote as helpful if my reply does
- Proposed as answer by Rachit Sikroria Saturday, August 8, 2015 5:10 PM
Saturday, August 8, 2015 4:37 PM -
Hi Rachit.
Actually I dont have the option "JavaScript", look at the image:
Am I missing something? It is strange.
Saturday, August 8, 2015 4:55 PM -
If you have not installed in the default folder,then go to C:\Program Files (x86)\Microsoft Visual Studio 14.0 copy to your install folder(ex.F:\Microsoft Visual Studio 14.0)
open the Developer Command Prompt as administrator,run command:
devenv /setup
devenv.exe /InstallVSTemplates
Reference articles:http://blog.lishewen.com/post/2015/03/03/vs2015-ctp6-after-installation-without-javascript-intellisense-solution-templates-and-editor
http://stackoverflow.com/questions/28704964/visual-studio-2015-ctp-javascript-support-missing
Please mark as answer or vote as helpful if my reply does
- Edited by Rachit Sikroria Saturday, August 8, 2015 5:08 PM
- Proposed as answer by Rachit Sikroria Saturday, August 8, 2015 5:10 PM
- Marked as answer by LuisNY Saturday, August 8, 2015 5:13 PM
Saturday, August 8, 2015 5:07 PM -
Thanks!!!!!Saturday, August 8, 2015 5:13 PM