DEV Community

Matt G
Matt G

Posted on

Ditching Sublime for VSCode

I have used Sublime for a long time, it has been my text editor of choice and has treated me well over the years. I would continue to use to it, but the support has dwindled and finding useful plugins is a chore. I really wish the maintainer would have open sourced the project years ago 😢.

I took the plunge and uninstalled Sublime... onto VScode...

The thing I am going to miss the most is jeering @ my co-workers for using their slow electron based editors. This is going to be a humbling experience.

  • As someone who is new to VScode, Are there any tips / tricks you can offer?
  • Have you switched? How was the experience?
  • What do you like about VScode? What do you hate about it?

Discussion (31)

Collapse
yokowasis profile image
Wasis Haryo Sasoko

The thing about vscode it, it is very JavaScript centric. If you were a php developer you will find out that developing php in sublime is wayyyy better.

There is no auto switch language in the fly like sublime text. You can write JavaScript , css, and html in php files , sublime will know the context , and offer you the relevant automation complete.

That is not the case on vscode. You need to change your language manually. And apparently , vscode team doesn't think this is an important feature and has make their statement clear that they won't make this feature available as in ever.

Collapse
asparallel profile image
AsParallel • Edited on

I wouldn't call it JS-centric, but that sentiment has likely already been expressed. It's great for C#, F#, go, python, Haskell and a number of other languages. Then again, its target audience is by and large bleeding edge development so it makes sense PHP wouldn't be a priority.

Collapse
yokowasis profile image
Wasis Haryo Sasoko

You are free to disagree. Doesn't make my point less true.

I never said about xdebug. VScode has a lot of extension, git lens and xdebug support is two of them. XDebug on sublime is simply a frustration to use. That and its great environment for developing javascript based app is what makes me ditching sublime text. Because having 2 editor is like having 2 phone.

My point about he vscode is its inability of the correctly guess what I want. Even with its abundant extension not even one can do it right.

Sublime can detect out of the box what I am working on, whether it's php, javascript, css, or html.

VSCode can't even detect whether a variable is already defined on another file. It will always treat a variable on a file is a new variable, with extension or not.

This is not a case in sublime. You can define a variable another file, and it will be detected correctly on the file I am working on.

We can go on and on, but it won't change the fact that PHP code completion, and suggestion on Sublime Text is way superior than VSCode. And VSCode team has clearly said that they won't give a shit about this. So much for intellisense.

yokowasis profile image
Wasis Haryo Sasoko

At one point, I even use vscode dedicated to debugging the apps I write on sublime. Doesn't work well, I end up with too many windows and more alt + tab than I really need.

Ditching sublime is hard but I've got no choice, it's time to move on.

Collapse
somedood profile image
Basti Ortiz

Welcome to the club! I'm sure you would love VS Code. Here are some tips and tricks VS Code offers in their documentation.

And yes, I do like VS Code. I would say it's the best editor I've ever tried. There's little I can say against it, really. In my opinion, the Electron-based architecture is the only downside here. Despite that, you wouldn't notice a huge performance lag at all (unlike in Atom). Just keep the number of extensions low and you'd be fine.

Collapse
mattdevio profile image
Matt G Author

Thanks dood! 😀🍻 I will check out the link when i get in tonight.

Collapse
jnario profile image
Jose Nario

For my part, I still use Sublime alongside VSCode.

VS code is a bit more project-centric, where Sublime is more nimble and performant (IMO) for adhoc work and quick hits.

So they both coexist quite peacefully in my workflows (and I still have room for Pycharm and Data Grip).

In short, I prefer AND to OR.

Collapse
mattdevio profile image
Matt G Author

Maybe one day I can install sublime again. I think it is best I keep it removed until I fully give VSCode the test drive it deserves.

Collapse
juanfrank77 profile image
Juan F Gonzalez

I switched from Atom to VSCode some time ago and I have to say it has been one of the best decisions I've made in my programming career (besides doing front-end stuff). There's a lot of stuff you can do with it and there's a series of tips & tricks by John Papa and Burke Holland. There's even a website aptly named vscodecandothat.com

Collapse
mattdevio profile image
Matt G Author

That website is great! I really like the settings-sync extension. I was worried about updating my work machine on Monday, now I don't have to!

Collapse
darkain profile image
Vincent Milum Jr

Personally, I've yet to find a compelling reason to switch away from. Sublime. It's smaller, faster, and makes me faster at editing, auditing, and writing code. It looks great, feels great, and gets the job done extremely efficiently. The "newness" of a tool shouldn't discourage usage. I still use tools written in the 1990s, because they just WORK. Sublime has a very nice collection of plugins, though I personally have found I only need a few. I built my own color theme, added a plug-in for a better folder side car, another for git, and that's about it.

I'm still waiting to find a "killer feature" so to speak to pull me away from sublime, yet I've seen none. The large feature that pulled me into sublime was multi-selection many years ago! I know others have this now, but they need something more to make it worth while. Vscode right now just slows me down, so I don't see any reason to swap yet.

Collapse
mattdevio profile image
Matt G Author

I just started learning ReasonML, that was my 'reason' 👌. I struggled to get the code hints working in Sublime. The support for the sublime packages is just not there. Took two seconds in VSCode.

I don't think there will be a killer feature that won't be available on both. For me, its the little things that add up over time.

Collapse
hossam_mo7amad profile image
حسام محمد^3

The remarkable things for me in vs code are the native gut integration. Their amazing UX design (installing extensions is a button click, and once you open a file of a language he will recommend to you the famous extensions for that language. Also their hot keys cheat sheet git it up its awesome

Collapse
benjaminblack profile image
Benjamin Black
Collapse
asparallel profile image
AsParallel

I use both. The regex search and large file reading capabilities of sublime are near-unparalleled. Vscode is an excellent, fast electron ide that has significant integration with many platforms at this point. They're both awesome and in my toolbelt.

Collapse
enriquemorenotent profile image
Enrique Moreno Tent • Edited on

Here you have my list of settings, extensions and so on. I hope it helps you.

gist.github.com/enriquemorenotent/...

I was also a ST fan, specially for its speed. I open it sometimes, and realize it is still the fastest. But it has fallen behind in the world of code editors sadly. So yes, I also migrated to VS Code.

Collapse
adi profile image
Adi Sk

I was in a the same boat as you are in. One plugin I wish I found when I made the switch was sublime keymaps. It eases the switch by providing sublime text keymap for vscode.

Collapse
mattdevio profile image
Matt G Author

Thats a good one, thanks!

yokowasis profile image
Wasis Haryo Sasoko

For 1 language on 1 file, vscode is great.

For 4 language on 1 file like php its AI Brain can't handle it.

Thread Thread
lschultebraucks profile image
Lasse Schultebraucks

I mainly use Intelij for developing Angular apps. Probably because I also use it for Java projects and then it is easy to use one IDE for multiple purposes. I tried out VS Code but I am not sure about it. What can offer VS Code for developing Angular apps instead of Intelij? I feel like Intelij does a great job supporting Angular. Only benefit I currently see from VS Code I see is that it is more lightweight than Intelij. Really curious about the advantages VS Code could offer me. Would love to hear any responses from you!

Thread Thread
mattdevio profile image
Matt G Author

I don't write a lot of Angular, but I have never thought of writing it in idea. Why not WebStorm? I would imagine the support would be better.

Thread Thread
yokowasis profile image
Wasis Haryo Sasoko

I never use intelij so I can't really give any opinion / comparison in that matter.

Thread Thread
lschultebraucks profile image
Lasse Schultebraucks

Idea can basically everything what Webstotm can do. So no need for having installed both.

yokowasis profile image
Wasis Haryo Sasoko • Edited on

Let's agree to disagree

Sublime > great for coding php but debugging php is suck ass
VScode > great for debugging php but its I can't sense any intelligence from its intellisense.

Collapse
caseycole589 profile image
Casey Cole

I hate that it is slow the only time I fire it is to double check my paths are correct.

Collapse
pickleat profile image
Andy Pickle

I’v Really enjoyed VSCode but I will say I’m struggling on the debugger end currently. Not sure how to get a better JS debugger.