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?

51

u/TonySu Feb 07 '19

I switched over for the Git integration, and I'm someone who paid for Sublime.

8

u/BondDotCom Feb 07 '19

Have you tried Sublime Merge?

29

u/TonySu Feb 07 '19

No, the whole point is to have sufficiently useful git client in my editor so I don't need to have an external GUI.

3

u/Drarok Feb 07 '19

I tried it for a day and it just didn’t click for me.

I’m back to GitX and happy.

→ More replies (2)

34

u/HowDoIDoFinances Feb 07 '19 edited Feb 07 '19

I went from Sublime -> Atom (which I stayed on for years) then finally, reluctantly tried out VS Code.

It's fantastic. It's really, really so good. Incredibly solid compared to the weird issues I would get every once in a while with Sublime and Atom. It's really pretty and works really well. Plus, it has keybind packs for Sublime to make the transition easier.

It had me sold alone just as a text editor, but also it has some reeaaally nice debugging stuff. And, I know, I know, if you're a JS dev like me, there's the attitude of "the only debug tool I need is console.log."

But man, real robust debugging with hover-variable-previews and really nice breakpoints and all that is pretty nice when the situation calls for it. It also gives you the ability to setup a debug config that lives with the project and you get just a drop-down of debug scenarios that you've set up and you can instantly start up any of them.

I was skeptical as hell, but it's my favorite editor of all time.

0

u/[deleted] Feb 07 '19

[deleted]

9

u/HowDoIDoFinances Feb 07 '19

I got on Atom very early, so I was on it for a while. I did really like it, but once I finally tried VS Code, it just couldn't compete.

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]

14

u/coderstephen Feb 07 '19

Even so, it is still fast. It often starts faster than Vim for me on some computers.

3

u/NexusMT Feb 07 '19

true... and opening 20MB plain text files is also amazingly fast.

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.

→ More replies (3)

28

u/bheklilr Feb 06 '19

I have. I was a die hard ST fan for the longest, and still really like it, but have side switched to vscode. One of the by reasons was a job change that meant a technology change. Went from python desktop apps and data science to java+typescript web apps. Vscode just has the best typescript support, period, and has good enough java support with a plugin to get by most of the time. It has an inline debugger, integrates with git really well, and a huge community of plugins. On top of that, it is a direct descendant, at least stylistically, of ST, so users will still feel very much at home and many of your shortcuts already work.

A huge reason to switch now is the features that vscode is pumping out regularly. Its just a fantastically good editor now, even in just a year since I started using it there have been huge improvements. They have a team dedicated to working full time on it, and being open source it means that they can get community contributions as well.

A big reason not to use it? Speed. No editor I have used can match ST in shear performance. Vscode is much heavier, each window is a new instance, plugins can vary a lot in performance, it uses a ton of ram, etc. ST is incredibly fast in comparison. That being said, vscode is much faster than, say, intellij.

Sublime used to be the king of extensibility, but vscode is an electron app, which means you not only have the power of the JavaScript/typescript ecosystem for writing the extensions, but you can also visually extend the editor with custom widgets much more easily.

→ More replies (1)

11

u/AndrewNeo Feb 07 '19

Intellisense. I do a lot of C# and Typescript and not having it outside of VS was killing me. It's also decent at figuring it out for Python and other languages.

3

u/whachamacallme Feb 07 '19 edited Feb 07 '19

Yes. First, Sublime to Atom. Then tried Vscode because an intern was using it.

For angular development vscode cannot be beat.

I still have to move my python projects over.

The best feature is the stability. It is solid.

2

u/[deleted] Feb 07 '19

People mention the git integration, and it is very good. But for me it was the integrated terminal. Being able to pop it open for test runners or misc tools and what have you, and then being able to Alt+click file paths and line numbers that in the output to jump to that file is Killer. I'd love to have that with Sublime. I'm not even sure if that works in n/vim.

Other niceties include first class support for LSP, though there is now a Sublime plugin for it, it was a little finicky for me but it worked.

And the huge extension ecosystem means it's chock full of gems I'd never even think to look for before, like one that hooks into a Gitlab instance and can give you issues assigned to you and reports the status of the last pipeline.

2

u/PersonalPronoun Feb 07 '19

Yeah I have. It's a bit slower and a metric tonne more memory hungry (seriously, it's a glutton for that ram, you've been warned). Package management, debugging, git integration etc are all just a little bit nicer in lots of little UXy ways. Code aware intellisense in languages that support it is a lot nicer than just expanding out keywords from the current file, as is hovering on classes to see doc snippets, etc. I think the multicursor is a bit worse, but mainly because I haven't worked out the shortcut for "put a cursor on every line in the selection" yet. In general it's similar enough that it's very easy to switch between the two.

2

u/Jedimastert Feb 07 '19

I switched over from Atom about a week ago. I'm enjoying it well enough

2

u/EntroperZero Feb 07 '19

LiveShare.

1

u/Improvotter Feb 07 '19

I switched last year or so. Once VS Code wasn’t sluggish, its API just blows ST’s API out of the water and the extensions are way better.

1

u/Shadow_Gabriel Feb 07 '19

I wasn't sure if I can use Sublime on my work computer without buying it.

1

u/Dgc2002 Feb 07 '19

I did a few years back. If for nothing else than the first party extension support.

→ More replies (5)