/angularjs-visualstudio-intellisense

Visual Studio extension providing statement completion for injected AngularJS components in JavaScript files.

Primary LanguageJavaScriptMIT LicenseMIT

JavaScript IntelliSense for AngularJS Components in Visual Studio

This project provides intellisense in JavaScript files for injected AngularJS components in Visual Studio.

Visual Studio 2013 provides intellisense for AngularJS directives within HTML pages, but doesn't include support for intellisense on custom AngularJS components in your project. This extension is designed to provide this support, so that you can have full member listing and statement completion on AngularJS services, factories and providers that you develop.

Usage

Enabling intellisense for your custom AngularJS components is simple and can be accomplished with a few simple steps:

Enabling Intellisense in a Single Project

  1. Add the _intellisense.js file to the Scripts directory of your web project containing AngularJS components.
  2. Ensure that a link to the _intellisense.js file is included in the _references.js file of your project, along with links to the AngularJS JavaScript files and the JavaScript files containing your custom components.

That's it! All of your AngularJS components should now be fully available via intellisense.

Enabling Intellisense in Multiple Projects

If you prefer to enable AngularJS intellisene for all of your web projects, simply save the _intellisense.js file and add a reference to it under "Tools > Options > Text Editor > JavaScript > IntelliSense".

Project Status

This project is still early in its life and so may still have issues, but it is stable enough for use as-is. It provides intellisense for AngularJS components in most of the cases I have tested, although there are some code structures that it cannot figure out yet. If you encounter any issues or any scenarios in which the project isn't providing proper intellisense, please submit an issue.

I hope to create a NuGet package to automate the installation of the intellisense file, so expect that soon.