Skip to main content

Posts

Showing posts with the label AngularJS

Hiding JS and Related Files While Working with TypeScript : Visual Studio Code

While I was exploring Angular 2 , following their Tour of Heroes tutorial, I was excited to see it is using TypeScript . As we know, TypeScript is not directly supported by browsers. It has to be transpiled into JS code for it to work. Good thing, the guys at Google has come up with a startup kit when developing Angular application ( instruction how to get it here ). Now you dont have to worry about manually transpiling TypeScript codes to JS, the package will do that for you and a lot more ( BrowserSync , yeah). With that being taken care of, you only have to worry about your TS code. Because the transpiled files reside on the same folder, these files may cloud up your Visual Studio Code file list. I asked StackOverflow ( Google for devs haha ) and got a working solution, pronto!

Enabling Intellisense for AngularJS in Visual Studio Code

Visual Studio Code is a feature-rich code editor developed by Microsoft. Extensions can be added to the application to make it more usable. Intellisense is a developer feature that is present n almost all modern code editors and VSCode supports it. However, it does not support it out of the box. Follow the steps below to install Angular intellisense on VSCode Windows. Prerequisites: NodeJS  to be able to install the needed packages through npm .  Visual Studio Code.