r/javascript • u/dwaxe • Feb 06 '19
Visual Studio Code January 2019
https://code.visualstudio.com/updates/v1_3177
u/ArcherCowan Feb 06 '19
I'm just glad that you don't need to reload the program when you install an extension now. Great work VS Code!
24
u/Spazsquatch Feb 06 '19
I’m a bit shocked that was listed as the top feature. How often are you installing extensions?
35
u/j3bsie Feb 07 '19
Doesn't matter how often one does. What matters is that the obligatory restarting of the application is gone for good.
17
u/Spazsquatch Feb 07 '19
Maybe I’m thinking of something else, clicking the little “reload” button?
Don’t get me wrong, it’s better that it is automatic, but it’s such a minor issue (for me at least) that I was surprised it was their most requested issue.
11
4
u/dfhr3 Feb 07 '19
Is not only about installing. Sometimes is about juggling extensions that may overlap. Moreover, an update to an extension can happen without having to restart the IDE as well. Overall I like this and I don’t consider it minor. I was recently developing an extension for IntelliJ and for some reason the tester IDE for the extension would crash. The only way to really test the extension in full was to install it as a plugin. It was a very painful process as a consequence because it required me to restart the ide.
4
u/j3bsie Feb 07 '19
Why the surprise tho. I personally would have requested that feature.
3
u/Spazsquatch Feb 07 '19
I guess “most requested” doesn’t mean the feature people cared about the most, just that it was a thing everyone noticed could be better. Glad to have it, but tomorrow won’t feel any different because of it.
4
u/FennekLS Feb 07 '19
Really? The most annoying part is where you have your dev server running in the built in terminal and want to enable or disable a plugin. Let's say you have a back end and a front end dev server, this quickly becomes annoying. To the point of having your dev servers run in a separate terminal
2
1
3
Feb 07 '19
An issue I can think of is if you’re in the middle of working and you need an extension, restarting means no undo.
2
1
u/Mittalmailbox Feb 07 '19
It works for updates too, for plugins I use these is at least one update every 2-3 days
69
u/waway_to_thro Feb 06 '19
The velocity of vscode is incredible, what do you think the primary reason is? The language, platform, team, open source status, or something else?
62
Feb 06 '19
A bit of everything. While it's free I bet it generates Microsoft a ton of money from pushing TypeScript and giving them good recognition in dev world, something they've missed for years, which results in Azure sales.
So the team is big enough, well funded, can do whatever they want as direct profit is not relevant so their goal is pleasing users only. Add to that open source contributions from crowd who knows how to contribute and you've got the velocity you're looking for.
Obviously none of that would have been possible without amazing PMs of VS Code and I guess Satya Nadella and - I'm not sure - Scott Guthrie?
8
19
u/careseite [🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) Feb 06 '19
Id argue Typescript helps, but its most likely just a better project structure & more optimized code? Atom is pure JS, same platform, also open source.
24
u/BluudLust Feb 06 '19
Excellent extension support really got it rolling.
Backed by Microsoft which has a lot more resources to devote to this. Coded in a language they created. Definitely has the most experienced (TypeScript) developers working on the project. Also Microsoft created and has maintained Visual Studio for decades now, so once again more experience.
-1
u/ConsoleTVs Feb 07 '19
Have you ever run vim, emacs or sublime? They are made with native tech rather thsn electron. They are fast. Vscode is OK but does the job :)
10
u/waway_to_thro Feb 07 '19
I can see your side of the story. I ran sublime for 2 years as my primary javascript IDE, I begrudgingly switched to vscode for a week to appease a coworker about a year and a half ago, my opinion quickly spun a 180.
The memory footprint is actually generally smaller than other native apps I run (looking at you xcode), 100-200MB depending on what extensions I'm running and how many simultaneous projects I'm working on (typically around 3), there is nothing slow about vscode.
Sublime changed my expectations from a development environment, then vscode fulfilled and surpassed all of them, truly the best development experience I've encountered in about 15 years
1
u/ConsoleTVs Feb 07 '19
I use vscode as well. Just saying that vscode can't just be called fast compared to almost any other tool that has existed before electron.
4
u/folkrav Feb 07 '19
It definitely can be called fast compared to any comparable tool. VS Code edges IDE territory. PhpStorm uses 1.5GB+ on my machine right now on a moderately small project. If you're talking about sluggishness, Vim gets just as sluggish once you start adding in linter, git gutter and integration, language servers and other various plugins to make it as featured as an IDE.
Don't get me wrong I love Vim and hate the high memory usage of Electron apps, but if there's one Electron app that made it right, it's VS Code.
1
u/ConsoleTVs Feb 07 '19
I got 3 screens. 144hz on the main one. If i add a youtube video on on secondary screen, the main windows (where the editor is focused) starts lagging. Noticed when sceolling etc. gtx 1060 and i7 4.2gz. not my fault. At all.
2
u/folkrav Feb 07 '19
Weird. I also have three screens on an [email protected] laptop with integrated graphics at work, and also listen a bunch of YouTube videos all day long, no particular problems with lag.
My point was that you compared VS Code with Sublime, Vim and Emacs, while I argued that it's fairer to consider full fledged IDEs in that comparison considering VS Code's feature set, that's all.
1
u/ConsoleTVs Feb 07 '19
Well, i didnt day code was bad, i use it... It happenswhen i have the video with movement on the secondary display.
1
u/StupidHumanSuit Feb 07 '19
Very powerful tools that take many hours to become proficient enough in to code with any sort of efficiency.
Sublime is probably the "industry standard" but it's still not free and you have to read docs to enable syntax highlighting...
12
11
u/userexec Feb 07 '19
So I haven't hopped on the train yet and am still using Sublime Text 3 themed up and with my favorite plugins (linter, prettifier, etc.). Are there some killer features I'm missing out on?
15
u/panzerex Feb 07 '19
I use a combination of VSCode and SublimeText. I code mostly in Python. When I’m working on larger projects, the git stuff and debugging is what stands out for me.
If I’m just trying stuff out outside of a project (especially if I’m not using any libs) Sublime (and its internal interpreter) is enough. If I’m doing some data visualization I like to work with Jupyter notebooks, and recently VSCode got an interactive python runtime (like a frontend for Jupyter notebooks), so I might rely less on Sublime.
I also use Sublime as a scratchpad for quick notes and doing some fast editing of text I copied from the web, for example. In the end, I don’t think you need to ditch one for the other.
5
u/huunghia160799 Feb 07 '19 edited Feb 07 '19
I never knew VSCode has interactive Python, may I ask what is its name?
7
u/panzerex Feb 07 '19
I think it comes with the main Python extension by Microsoft. You need to select a "Python interpreter" and then it should be available under "Python: Show Python interactive window". It's neat, although very lacking in auto-complete functionality and other stuff.
9
9
u/SiliconUnicorn Feb 07 '19
I was hardcore in the Sublime camp last year. Even finally got around to purchasing a license. But someone forced me to give VSCode a try and I haven't looked back since. All the plugins I used have compatible VSCode counterparts, there's even ones to make it more like Sublime. I don't know about any killer features per se but there's just a ton of lifestyle features that make it really pleasant to work in. It's got all the customization and features I loved about Sublime but it's just in a highly polished package.
Oh also it gets updated. I guess you could call that a killer feature that Sublime is lacking 😉
1
u/Xeon06 Feb 07 '19
there's even ones to make it more like Sublime
Link please?
2
u/SiliconUnicorn Feb 07 '19
https://marketplace.visualstudio.com/items?itemName=ms-vscode.sublime-keybindings
Here's the one I'm using
1
3
2
u/vinnl Feb 07 '19
If you want to finally learn Vim, the Vim extension is excellent and, being an extension, it's easy to fall back to your older habits for the parts you haven't mastered yet.
0
Feb 07 '19
[deleted]
2
2
u/Madd0g Feb 08 '19
Yep, it slows things down considerably. You might want to try the other popular one (amVim), it doesn't have as many features, but bare basics are there
1
10
Feb 06 '19 edited Feb 06 '19
I'm getting this error "Extension host terminated unexpectedly." on Mac. Some kind of issue with LiveServer so i removed that and working fine.
5
u/zdko Feb 06 '19
Live Server extension v5.4.0 fixes this. Try manually updating with the vsix binary here.
2
u/CoPhil_ Feb 06 '19
Same here, I ended up just reverting back to the previous update.
0
4
u/trblackwell1221 Feb 07 '19
Has anyone had any problems with prettier or beautify after this update? My js file formatters are jacked up after installing it
3
u/sockjuggler Feb 07 '19
prettier broke this week for me too, but it was before the vscode upgrade (and still broke after)
2
1
u/Potato-9 Feb 07 '19
I've found vscode formats lines to 160 on save regardless of prettier printwidth config or editor.wraplinelength
Related?
2
u/trblackwell1221 Feb 07 '19
I fixed it by downloading an older version of vs code and then updating that version to the most recent 🤷🏻♂️
1
3
2
u/simohayha Feb 07 '19
For me, using VS Code was a series of "huh, that's kinda neat".
This just keeps getting better.
1
u/stlaurentgod Feb 07 '19
And this happens the exact same day I switched from the Insiders build because the extensions host kept crashing, best day 😂
1
u/klabe2018 Feb 07 '19
Is vsc better than IntelliJ ? I’m currently using IntelliJ and pretty happy about it
2
u/1xltP3mgkiF9 Feb 07 '19
AFAIK not really. The "basic" code navigation, debugging, etc. are great, but there is no near as good support for refactorings, code insights, etc.
1
-1
-1
u/wordsoup Feb 07 '19
ITT pattern
Microsoft good now
Atom dead
VSC the pinnacle of text editing
The dev team are the gods of productivity
Electron is awful
Then there's the 1% that says feature x of update y is good/bad for reason z.
Also people like me who make counterproductive arguments.
-2
-2
-36
u/nousernames2 Feb 06 '19
For £5 a month you can use webstorm and it's set up better from the get go imo
5
u/LaserRanger Feb 07 '19
Webstorm is definitely more polished. I use it at work. But they're feeling the heat from VS Code, which is good for a free IDE. That heat is good for WS since they're forced to improve it
3
Feb 06 '19
Both are great tools and I wouldn't dare to call either better. It's mostly preference, plus they are slightly different in scope.
1
u/LaserRanger Feb 07 '19
In what way are they different in scope?
1
Feb 07 '19
For web development I guess they aren't that different - as it doesn't require much.
My thinking is that JetBrains products are definitely IDEs while VS Code is maybe-IDE.
-14
u/nousernames2 Feb 06 '19
Lol -19 for my opinion vs gag much
5
u/yesman_85 Feb 07 '19
You're comparing an editor with an IDE.
2
u/ConsoleTVs Feb 07 '19
The editor becomes an ode when u have tons of extensions (and that's most likely to be the case for anybody)
0
Feb 07 '19
[deleted]
3
u/vinnl Feb 07 '19
Not having used IDEA I'm not sure what indexing and searching features you're looking for, but VSCode's Vim mode is excellent.
2
u/klabe2018 Feb 07 '19
Same here. I use IntelliJ + ideavim for both java and Javascript. I’m pretty happy about it.
0
Feb 06 '19
[deleted]
7
Feb 06 '19
Do any of added features slow you down?
-12
Feb 07 '19
It does slow me down. It's taking too long to start. That's why I'm using Sublime Text again.
7
u/yesman_85 Feb 07 '19
Lol, mine starts in less than 10 seconds. You should be happy you weren't a programmer in 1980.
1
u/snyper7 Feb 07 '19
Really? Running
code .is inconceivably fast on all of my machines, from an old Mac Mini to a Gen10 ProLiant.1
1
Feb 07 '19
You know how many times do I launch VS Code a day? Less than once on average (i.e. I often keep it running over multiple days). Even if I lose few seconds there I'll recover it elsewhere.
1
u/JeusyLeusy Feb 07 '19
Emacs has an option where you can start an Emacs Daemon and everytime you open Emacs it pretty much starts instantaneously even after closing it (if you ever end up closing it that is)
1
Feb 07 '19
The ConPTY support rolling in is very much welcome. The integrated terminal on windows is in serious need of help and hopefully that is the key.
1
156
Feb 06 '19
[removed] — view removed comment
88
u/careseite [🐱😸].filter(😺 => 😺.❤️🐈).map(😺=> 😺.🤗 ? 😻 :😿) Feb 06 '19
VS Code is leaving Atom in the dust.
when I adopted VS Code last March it was alredy lightyears ahead of Atom by speed alone, not even talking about the ecosystem and the features...
39
u/pizzainacup Feb 06 '19
When I first started learning programming a bit over a year ago I had to switch from Atom to VSCode cause Atom ran terribly. Not a single flaw with VSCode for me so far.
6
Feb 07 '19
I was using Atom for a while at my last job. I could sit and watch my battery percentage drop. It would absolutely destroy my laptop battery. It was so poor.
58
u/Baryn Feb 06 '19
Atom has been irrelevant for at least a couple years.
8
5
u/ChucklefuckBitch Feb 07 '19
Microsoft has made statements that there are no plans of abandoning Atom, and that work on it will continue like before.
9
u/goto-reddit Feb 07 '19
Yes, he said that in an AMA 8 month ago, it was the top question:
I’m Nat Friedman, future CEO of GitHub. AMA.
What plans does Microsoft have regarding GitHub's Atom text editor (which obviously overlaps in target user with VS Code)?
Developers are really particular about their setup, and choosing an editor is one of the most personal decisions a developer makes. Languages change, jobs change, you often get a new computer or upgrade your OS, but you usually pick an editor and grow with it for years. The last thing I would want to do is take that decision away from Atom users.
Atom is a fantastic editor with a healthy community, adoring fans, excellent design, and a promising foray into real-time collaboration. At Microsoft, we already use every editor from Atom to VS Code to Sublime to Vim, and we want developers to use any editor they prefer with GitHub.
So we will continue to develop and support both Atom and VS Code going forward.
-3
4
u/snyper7 Feb 07 '19
A coworker of mine was lauding atom a few years ago, so I gave it a try. My first impression was that it was incredibly slow. I went back to Code pretty quickly. I'm pretty sure he uses Code exclusively now too.
Interesting thing - many portable applications, including VSCode and Atom, run in an environment called "Electron." Electron was developed as the runtime environment for Atom, or the "Atom shell." Atom shell - Electron.
1
u/bob51zhang Feb 07 '19
That's a really cool naming scheme, is there such thing as proton?
1
u/snyper7 Feb 07 '19
Not that I'm aware of, but that would definitely be a cool name for an OSS project.
12
u/seiyria Feb 06 '19
Die-hards will use it, it will stop being supported, vscode will take over. It will be the new vim.
3
u/rohmish Feb 07 '19
I have my atom install modded to hell with what I want just as atom started to become "irrelevant". Hard to move over but I'm working on it
5
u/keef_hernandez Feb 07 '19
Vim is supported.
13
u/CaptainLepidus Feb 07 '19
They mean: VS Code will be the new Vim, in terms of dominance in this space.
6
Feb 07 '19
Atom - 10-20 commits per week
Vscode - 200-300 commits per week
So, Atom just die slowly.
7
u/Mittalmailbox Feb 07 '19
Number of commits does not tell full story
4
u/mournful-tits Feb 07 '19
It does show level of interest and commitment to a project. You could argue commits don't mean much for a mature project with relatively few bugs and a feature set that has an answer to everything (albeit some less than ideal)... But that isn't Atom.
2
u/devperez Feb 07 '19
Eventually they will likely stop developing it. But when MS Github, they promised to keep it around for now at least.
10
Feb 06 '19
[removed] — view removed comment
20
u/bronxct1 Feb 07 '19
It brings them goodwill in the community which I’m sure in the long term converts to Azure and other Microsoft service income.
VSCode and Windows Subsystem for Linux are the two plays to get developers using Microsoft tools. For the first time in my career I’ve considered switching to Windows for development and these tools make it possible. I’m not quite there yet but in the next year or two I think I will be
14
u/kanye_ego Feb 07 '19
Microsoft has tens of thousands of developers. Giving them a good alternative to Visual Studio alone is worth the investment.
Good karma. The fact that open source devs are warming up to Microsoft is invaluable. Devs are much more likely to use other Microsoft products now.
Integrations with Azure. The money is in the cloud now.
By leading the effort on LSP and DAP, it is becoming the target editor for many languages. Vscode is now one of the most popular editors for Typescript, JavaScript, Python, Go, Rust, .Net Core, even C++. This keeps them in the lead, amplifying the above benefits (not that I'm complaining. All editors and languages are benefiting from this effort)
1
u/Awnry_Abe Feb 08 '19
Microsoft is producing VS code for Microsoft. That you and I can benefit are just a side effect. Want language bindings for the Foo language? Better hope MS is using Foo, or you are writing your own bindings. And those bindings better be congruent with their view of the world, or you are hosed.
-7
Feb 07 '19
[removed] — view removed comment
0
Feb 07 '19
[deleted]
-5
u/snyper7 Feb 07 '19
Visual Studio has a free edition, and it's available on Linux I believe. It's available on Mac.
0
u/mhd Feb 07 '19
Nope to either. You can use a Windows-based VS to do remote development on linux now (including hooking on to GDB), but no native support.
And VS Mac is just a rebranded MonoDevelop.
56
u/thatwasawkward Feb 06 '19
I never thought I'd love anything made by Microsoft this much. I WAS WRONG.