Not to be confused with the Microsoft Visual Studio IDE, which is used for making Windows-based apps, Visual Studio Code (VS Code) s a lightweight editor similar to Atom or Sublime Text and its usage has experienced a rapid rise!
The first version came out in April 2015, but in a Stack Overflow survey of development environments carried out the following year, it was ranked 13th, having achieved only 7.2% of the market share and trailing a long way behind Notepad++ and Visual Studio (both 35.6%), as well as Sublime Text (31.0%). However, a year later, it had climbed up to 5th place (24%) and, in 2018, became the most-used editor (34.9%). The results published in 2019 proved this wasn’t just a passing trend, with VS Code’s market share having increased to 50.7%.
1. It’s open source and has community support
Unlike Sublime Text and WebStorm, VS Code is completely free and open source, just like Atom, GitHub’s editor. The key difference between it and Atom, though, is that Microsoft is really making the most out of being an open-source development. To give you some idea, it is the top open-source project on GitHub, having received 19,000 contributions in 2018. Such support is unsurprising really, as the internal development team work actively with the community, including working in Agile with a DevOps culture, meaning they can release faster, learn faster and, ultimately, improve their product faster. Additionally, to make sure they deliver what the users need, they gather telemetry on the product usage and take note of the input posted by users on GitHub and UserVoice.
Of course, it also helps that Microsoft is great at marketing and selling software, and has greater capacity to promote VS Code than any other editor creator does! Check out the public roadmap to get a preview of what’s to come.
2. It offers cross-platform possibilities
These days, cross-platform development has become very important. According to Stack Overflow’s 2019 developer survey, 45.3% of professional developers are working on Windows, 29.2% on macOS, and 25.3% on a Linux-based OS. Thanks to VS Code being based on Electron, a cross-platform framework, Microsoft has been able to distribute it on these 3 OS with virtually no effort.
It provides intelligent code completion, parameter information, reference search, and many other advanced language features. You can also find plugins that provide excellent IntelliSense in most languages.
Also, when working on the client side of an application you can use an extension available for Chrome, Firefox, and Edge that allows you to access the browser debug console information directly from VS Code’s debug console.
4. …And has several other handy features
If you’ve ever worked with Node.js, you’re likely to have had to keep a terminal window open for development at some point. This means that, unless you have two screens, you’ve probably become frustrated by having to switch between your editor and the terminal and ended up reducing the width of your editor so that both the code and terminal are visible.
The fact that there is an integrated terminal with VS Code definitely makes life easier. You can even have multiple terminals for different locations open and easily navigate between them. The terminal space can also be split so that two terminals can be visible at the same time, as shown in the below graphic.
Real-time code collaboration that works
Available as an extension, Live Share allows you to participate in collaborative real-time coding, just like when you work in Google Docs, as the below graphic shows. It only involves a one-click installation, integrates audio and text chat—and it’s free.
To start a session, just share a link with team members that permits access to your workspace. Every participant can use the debugging features independently and share terminal instances.
If you’re curious to find out more, check out the other features outlined on vscodecandothat.com.
5. Its performance makes life easier
With VS Code, you have access to IDE-like features but with the straightforwardness of a classic lightweight code editor. Even with all these native features and plugins, it’s fast, unlike IDEs such as NetBeans, Eclipse, and Visual Studio, or even Android Studio, which can all quickly get bloated and sometimes consume all your RAM.
However, it’s important to highlight that, even if VS Code is considered stable and responsive, it’s not the fastest. When dealing with large files or searching across a large codebase, it is outperformed by native editors such as Vim and Sublime Text. But we think that’s an acceptable compromise for high performance, cross-platform possibilities, and access to a lot of interesting features.
However, there are some limiting factors to consider. As usual, one size doesn’t fit all. For those who think it’s too feature-rich, Atom is a great alternative. The latter is very simple to start with and users can benefit from a great plugin collection when they want to add more functionality to it. In addition, as already mentioned, when you need a really fast editor or are having to work with large files, VS Code can’t compete with Vim and Sublime Text.
Nevertheless, there is little doubt that thanks to its great community and Microsoft’s investment in open source, VS Code’s popularity is likely to continue to increase in the years to come. Watch this space…
This article is part of Behind the Code, the media for developers, by developers. Discover more articles and videos by visiting Behind the Code!
Want to contribute? Get published!
Follow us on Twitter to stay tuned!
Illustration by Victoria Roussel
Data scientist @ PrestaShop
- Add to favorites
- Share on Twitter
- Share on Facebook
- Share on LinkedIn