Tuesday, August 11, 2015

VS Code

Here is my first impression with VS Code.

Code assistance

Today I tried Visual Studio Code, and I was really happy with it. I first tried code assistance for JavaScript and it is really good. It finally does a good job with suggesting a variable or object from other JavaScript files in folder. Yes I know, there are lot of developer tools that can do that, but I was amazed that this is Microsoft product, and this work "out of the box", no need to configure anything and no need to download 3rd party plugins or something.

If you are using Angular or Ember you can import intellisense for those. When you write word "angular." then word will be underlined with green line. Mouse over it and light bulb will show you some options. Option is "Add /// reference to ....." and when you add reference, and presto, you will have intellisense enabled for JavaScript Framework.

GitHub

VS Code come with GitHub integration, but you need to install it on your own. On Windows install it from http://git-scm.com/ if you already have installation of Git on your Windows machine, and Code says that there is no Git installed, you need to add it to your Path variable (Windows Key + Pause/break -> Advanced system settings -> Environment variables) and restart Code. If now Code recognize that you have Git installed but cannot recognize your existing repository, I advise you to reinstall your Git from address above, but when Git installation asks you to adjust environment variables, chose "Run git from Windows Command Prompt" in this way environment variables  will be set correctly and Code will see your Git repository correctly. Naturally you have to restart VS Code after Git install.


Debug

VS Code can debug Node and Mono applications, so I started my Node application from VS Code, it raised command prompt, connected debugger to Node server and started my application. If you put brake point in your Node.js code, execution of program will stop and you can debug your Node code like you are in full Visual Studio environment. Honestly didn't try Mono yet, but I will.


What surprises me is general lightweight of all of this. I am MS developer, and i love Visual Studio but, I hate when I need to wait him to start up, to try (and then fail) to connect to TFS when I am offline. Everything is heavy, need long time to install etc. With VS Code everything run fast and you have intellisense, you have  Code Information Indicators for C# code and much more little helpers that can help you programming.




No comments:

Post a Comment