JavaScript is a language of the Web. This series of articles will talk about my observations learned during my decade of software development experience with JavaScript.
Before moving further let us look at the previous articles of the series:
About VSCode
As stated,
“Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, OS X and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (C++, C#, Python, PHP) and runtimes.”.
In the last series I talked about a few editors, but what makes VSCode awesome? In my point of view VSCode is breath of fresh air. Let’s deep dive:
Command Palette
A very handy tool so developers can fire commands from editor only. Press Ctrl+Shift+P or F1 and a pop up will open,

Now you can search your respective command, ex,

Extensions
It supports 30+ programming languages out-of-the-box. You can install extensions by opening Command Palette.

Select “Install Extension” & you will see a huge list there,

You can find extensions available online at marketplace to install:
VS Code also supports APIs that allow you to develop extensions. You can use JavaScript or TypeScript to build your own extensions and debug and test them in VS Code
Tasks
I am in love with this feature of VSCode. You can write your own tasks and VSCode is intelligent to determine and show in task runner list. I have chosen Grunt task runner. Before we move forward, please install NODE & NPM to install node packages. To install grunt use below command
npm grunt install
Open Command Palette and choose “Tasks: Configure Task Runner”

VSCode will create tasks.json file. Delete everything and add following code for Grunt task runner
- {
- // See http://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "0.1.0",
- "command": "grunt",
- "isShellCommand": true,
- "args": ["--no-color"],
- "showOutput": "always",
- "tasks": [
- {
- "taskName": "scripts",
- "isBuildCommand": true,
- "showOutput": "always"
- },
- {
- "taskName": "sass",
- "isBuildCommand": true,
- "showOutput": "always"
- }
- ]
- }

For now, we haven’t installed all modules of Grunt therefore after running scripts you’ll face below error in OUTPUT window. This is beyond scope of this article but Output screen is similar to Visual Studio Editions.

Git Integration
VSCode side navigation contains reference to Git repo (Ctrl+Shift+G). You can initialize Git repo and start using Git commands like pull, push, commit etc.

Misc features
Goto line: F1 and type “:” and you can goto line number you want in file,
Compare files: Right click on a file and “select compare file” then right click and select another file to compare.

Below view will showcase match/mismatch lines. I don’t use any other file comparison tool because now VSCode provides it.

Debugging
The real power of VSCode is debugging capabilities. You will not miss the wonderful experience of Visual Studio Editions here. My next article is dedicated to Debugging capabilities of VSCode, please read once published.
Summary
I would say if you’re using VSCode until now then you must download and try it. It is a developer friendly editor installed by millions of developers. Please share your feedback or comments.
Read more articles on Visual Studio Code:
Guest UserPosted May 16, 2016, 2:55 AM
I mean to run .cs code in VSCode could be done. Which OS are you on, Windows or MAC, or Ubuntu
Vipin TyagiPosted May 16, 2016, 2:26 AM
Can you help me to run my .cs code using VSCode? Sumit Jolly Sir
Amit DavePosted May 3, 2016, 6:57 AM
Nice article!
Sonu ChaudharyPosted May 2, 2016, 6:04 AM
Thanks for sharing
Kuppurasu NagarajPosted Apr 30, 2016, 2:22 PM
Nice Sharing..
Guest UserPosted Apr 29, 2016, 1:35 PM
thanks coders
Mohammed IbrahimPosted Apr 29, 2016, 12:47 PM
nice
Pankaj Kumar ChoudharyPosted Apr 29, 2016, 10:28 AM
Nice Explain sir..........
Debasis SahaPosted Apr 29, 2016, 9:05 AM
Good One..
Vignesh ManiPosted Apr 29, 2016, 8:38 AM
nice
Gowtham RajamanickamPosted Apr 29, 2016, 7:39 AM
good one
Bhuvanesh MohankumarPosted Apr 29, 2016, 7:14 AM
Nice to know