I am trying to use Angular.js in Visual Studio Code. But it's not working. In visual studio 2013 I am able to get the IntelliSense, but not in Visual Studio Code.
Your compiler path and IntelliSense mode configuration are stored in your project's c_cpp_properties. json file. Edit these settings by selecting C/C++: Edit Configurations (UI) from the Command Palette. Under Compiler path, enter the path to the compiler compatible with your target architecture.
In Visual Studio Code, just install following npm package and will get intellisense for JavaScript files.
npm install --save-dev @types/angular
The answer provided here is no longer valid as tsd
was deprecated. To install angular or any other Typescript Definition
, please follow the next steps. Provided that you already have a package.json
file and a jsconfig.json
file:
npm install typings
--global
;typings install dt~angular --global --save
.You should now be able to have IntelliSense on your project.
ProTip! Include typings/
on you .gitignore
file before running the second command, to prevent git from watching changes to the newly generated folder for typings. You can also do that for typings.json
, but I do not recommend it. Up to you.
I got the information from the github repository readme
file and from this post by Laurent Duveau.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With