r/programming • • Feb 06 '19

Visual Studio Code: January 2019 (version 1.31)

https://code.visualstudio.com/updates/v1_31
790 Upvotes

340 comments sorted by

View all comments

41

u/neutronbob Feb 06 '19

Has anyone who previously used Sublime Text switched over principally/exclusively to VS Code and, if so, why?

33

u/coderstephen Feb 07 '19

I have. I bought Sublime quite a while ago and used it for a long time. I switched to Atom for about 3-6 months in 2015 but kinda hated it. I switched back to Sublime after a while.

I switched to VS Code sometime in 2017, and am still using it as my primary tool for text. Here are some reasons that come to mind:

  • Sublime's hacked-on package management leaves a bit to be desired. VS Code has a real extensions system that I can actually browse around easily from within the app.

  • Built-in support for "extra" stuff that I use: debugging, version control, intellisense, etc. There's packages in Sublime for those things, but they tend to be language-specific, and often don't work that well.

  • Non-text tabs. It's a small thing, but the ability for the core app and also extensions to take advantage of "WebView" tabs makes a lot of things more convenient than the Sublime Text way: image previews, Markdown previews, settings UI, keyboard shortcuts UI, etc. I really like how I don't have to switch to another app to take a quick peek at some image assets in my project.

  • Language support is fantastic. VS Code has been leading the charge with things we've really needed in development like the Language Server Protocol. In turn, language support extensions in VS Code seem to, for the most part, just work out of the box more than in any other editor I've used (excluding IDE-class editors).

For me, VS Code hits that perfect sweet spot of a text editor that includes useful IDE-like features, while remaining a lightweight editor without a million customizable dialog boxes and toolbars.

There's still some things that Sublime has an edge with though:

  • Nothing beats Sublime at pure performance. That thing is well-optimized.

  • Multi-window support is much better.

  • Has syntax highlighting for everything under the sun, while the VS Code extensions marketplace is a bit lacking in some areas right now.

0

u/[deleted] Feb 07 '19

[deleted]

3

u/Soyf Feb 07 '19

It's because it's a native app. I'm not complaining about vs code but the difference is still really noticeable.

0

u/[deleted] Feb 08 '19

[deleted]

2

u/Soyf Feb 08 '19

Sublime Text is written in C++ using a custom UI toolkit.

VS code is an electron app, which means it bundles an embedded chromium version since it needs an engine to render the html/css/js code. It's not native because all the code needs to be interpreted and does not compile to machine code.

In case both are well-written apps, the native one will always be order of magnitudes faster than the other (unless some magic new technology happens in the future and proves this wrong). Since vs code is actually quite optimised, the difference is not that shocking compared to other electron apps. You do, however, still notice the difference in startup time, scrolling smoothness, opening big files, etc.