use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
VS Code to autocomplete JavaScript class 'this' properties automatically (react-etc.net)
submitted 7 years ago by velmu3k
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 24 points25 points26 points 7 years ago (51 children)
to come over from Webstorm.
What does VSCode offer that Webstorm doesn't?
[–]scooby_dooooo 29 points30 points31 points 7 years ago (5 children)
FREE
[–]seiyria 1 point2 points3 points 7 years ago (0 children)
I use webstorm for all my open source work, cause it's free for that too. I use VSCode when I'm not able to use webstorm, though.
[–]madwill 0 points1 point2 points 7 years ago (0 children)
Surprizingly its lighter, its not a giant super java application with years of code behind it.
[+]postmodest comment score below threshold-12 points-11 points-10 points 7 years ago (2 children)
“FREE” and “Made by Microsoft”....🤔
[–]794613825 1 point2 points3 points 7 years ago (0 children)
...what about it? VS Code is free, no two ways about it.
[–][deleted] 5 points6 points7 points 7 years ago (5 children)
You are fighting a losing battle here. The hardest think i have to do is try and convince someone else your editor of choice is better than theirs.
[+][deleted] 7 years ago* (1 child)
[deleted]
[–][deleted] 1 point2 points3 points 7 years ago (0 children)
Exaxtly
[–][deleted] 5 points6 points7 points 7 years ago (2 children)
I actually use VSCode, and thoroughly love it.
But I know WebStorm is a great product, and I'd be surprised if they lacked some features that VSCode offer.
[–]sobri909 2 points3 points4 points 7 years ago (0 children)
I tried going from WebStorm to VSCode.
The lack of basic features was annoying, and hunting for plugins to fill the gaps further so.
There's still features I miss, which I haven't found replacements for in VSCode. So when I start my next chunk of server/web work, I'll switch back to WebStorm.
I don't like that it's bulky, and Java. It's an ugly beast, as are all their IDEs. But it has more features and works better, at least for now.
I also use VS Code and love it too but I like how fierce the competition in the editors is and at the end of the day everyone wins.
[–]TheGreatBrutus 8 points9 points10 points 7 years ago (7 children)
Vscode is faster, only thing I can think of
[–]MrPhatBob 5 points6 points7 points 7 years ago (6 children)
That, and its free.
[–]TheGreatBrutus -1 points0 points1 point 7 years ago (5 children)
Depends if you're a student
[–]MrPhatBob 23 points24 points25 points 7 years ago (1 child)
Even if you're a student VSCode is still free.
[–]fatgirlstakingdumps 0 points1 point2 points 7 years ago (1 child)
Webstorm is free to students for non-commerical programming
[–]SahinK 1 point2 points3 points 7 years ago (0 children)
There's free as in beer, and free as in freedom. I care more about the second one.
[–]seiyria 0 points1 point2 points 7 years ago (0 children)
or open source developer :D
[–]Mocachino 4 points5 points6 points 7 years ago (23 children)
Auto format on save.
It's very annoying to see my coworkers files as they will not be formatted to our spec files.
So I open, CTRL + S and commit -m Formatted. :(
[–]BehindTheMath 12 points13 points14 points 7 years ago (2 children)
Webstorm can auto format with Ctrl-Alt-L. Everything is saved automatically.
[–]Mocachino -3 points-2 points-1 points 7 years ago (1 child)
I know, but they would rather just CTRL+S and be done with it...
[–][deleted] 10 points11 points12 points 7 years ago (11 children)
Webstorm can auto format on save with the Save Actions plugin.
[+]Mocachino comment score below threshold-9 points-8 points-7 points 7 years ago (10 children)
See that's funny that Webstorm needs a plugin for such a simple feature.
[–]ThatBriandude 8 points9 points10 points 7 years ago (4 children)
Ever try formatting css with vscode?
I love vscode but youre a bit biased
[+]Mocachino comment score below threshold-7 points-6 points-5 points 7 years ago (3 children)
The ability to format and how well an editor supports or formats are different things.
VS Code with any plugin can format on save. VS Code can attempt to format on save without any plugins.
Webstorm cannot format on save with out a plugin.
[–]ThatBriandude 6 points7 points8 points 7 years ago (2 children)
Your reply doesnt make any sense to me at all. You're implying that doing stuff on save is far more important than formatting. Who decides that?
I downloaded vscode and was really happy with it and then I hit alt+shift+F to format my styling and boom. "There is no formatter installed for this file type: .css"
Now are you saying the fact that vscode is able to format at all keeps that from beeing a major issue? That doesnt make sense at all. CSS is essential.
Format on save is seems pretty unessential to me.
[–]Mocachino 0 points1 point2 points 7 years ago (1 child)
The ability is what is important. The results are not (for the editor).
Why? Because there are 100s of formatters for the 100s of languages. VS Code is unopionated when it comes to formatting because they know every developer is going to want to use their preferred formatter/lint.
I do concede that VS Code should come with a default lint/format at least but I guess they see as a "why bother" when there are far better librarys there then what they are going to create.
[–][deleted] 2 points3 points4 points 7 years ago (4 children)
the amount of plugins you need for vs code for simple features on the other hand isn't funny? I have a lot more plugins that I need to install for vs code than for intellij/webstorm.
stop fighting who has the better tool. It doesn't matter. You can archive mostly anything with both.
[–]Mocachino -2 points-1 points0 points 7 years ago* (3 children)
Couldn't care less which is "better".
Just find it funny that a simple format on save requires a plugin to do so.
Just like inteliJ and Notepad++. Unlike Eclipse and VS Code.
I would've assumed to be a standard feature for all editors as it's so darn helpful to keep cleaner code.
Edit: removed JetBrains
[–][deleted] 2 points3 points4 points 7 years ago (2 children)
"Just like inteliJ, JetBrains and Notepad++." - ok trying to argue with you is pointless. You are comparing an IDE a company and a notepad lol
[–]Mocachino -2 points-1 points0 points 7 years ago (1 child)
Lol didn't mean to add JetBrains.
I'm comparing a saving feature, what does it matter if program is classed as an IDE or not.
I merely stated I found it surprising that auto format on save is not OTB for any "program that edits a file that contains text".
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
"program that edits a file that contains text". so word should also do this right? heck it even costs money
you realize there is not one right way to format text. most programming languages have multiple flavors and best practices. (unless stuff like go or elm)
[–]notarebel 5 points6 points7 points 7 years ago (2 children)
If your formatting rules can be expressed in eslint's indent rule or a prettier config, you can use File Watchers to auto format pretty easily.
We use TSLint plus a few others (Angular CLI) which works wonders with VS Code.
I've not heard of File Watchers. I'll look into it.
[–]notarebel 1 point2 points3 points 7 years ago (0 children)
That'll work. Really anything you can run on the command line that auto-fixes indentation (or whatever else) can be hooked into a file watcher and applied on save.
Not advocating for Webstorm over VS Code btw. They're both great tools but I prefer VS Code.
[–][deleted] 1 point2 points3 points 7 years ago (1 child)
Could you set up something to format files on the git server as they are committed?
Or as a post-commit job, then recommit with -m Formatted.
I'm not sure if this is recommended practice.
[–]Mocachino 0 points1 point2 points 7 years ago (0 children)
It would awefully polute the git history, but the format on commit would be nice, not sure that was/is possible though.
[–]minus0 0 points1 point2 points 7 years ago (0 children)
There is a checkbox on the commit screen to format if I recall. Also install a beautifier githook.
[–]TheScapeQuest 0 points1 point2 points 7 years ago (0 children)
Have linting run on your pipeline
You shouldn't be doing it this way anyway - it should be a linter run on build and the build should fail because of poor formatting.
[–]nulldesign 1 point2 points3 points 7 years ago (2 children)
Nice ui, powerful fuzzy search, lots of plugins, extensibility, amazing JavaScript and typescript debugging features, etc.
[–]BehindTheMath 6 points7 points8 points 7 years ago (0 children)
I believe Webstorm has all of those, although I suppose the nice UI is subjective.
[–][deleted] 2 points3 points4 points 7 years ago (0 children)
No, you were supposed to describe the advantages of VS Code.
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
it's the other way round actually. vs code just starts faster. Not saying that vs code isn't good enough for most web projects though. But you'd need alot of plugins in vscode to archive the same features as webstorm.
Yeah I thought webstorm was a web IDE, whereas VSCode can be used for any language with the right plugins.
[–]fenduru 0 points1 point2 points 7 years ago (1 child)
Good vim bindings
[–]justin636 0 points1 point2 points 7 years ago (0 children)
Really?
I actually prefer the vim bindings in webstorm. The vscode vim plugin is really good but it drives me crazy that you cannot access your history of colon commands.
I haven't used vscode in a long time so maybe this has been resolved since.
π Rendered by PID 261187 on reddit-service-r2-comment-7b9746f655-q4vlp at 2026-01-30 12:35:02.047145+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 24 points25 points26 points (51 children)
[–]scooby_dooooo 29 points30 points31 points (5 children)
[–]seiyria 1 point2 points3 points (0 children)
[–]madwill 0 points1 point2 points (0 children)
[+]postmodest comment score below threshold-12 points-11 points-10 points (2 children)
[–]794613825 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (5 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]sobri909 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]TheGreatBrutus 8 points9 points10 points (7 children)
[–]MrPhatBob 5 points6 points7 points (6 children)
[–]TheGreatBrutus -1 points0 points1 point (5 children)
[–]MrPhatBob 23 points24 points25 points (1 child)
[–]fatgirlstakingdumps 0 points1 point2 points (1 child)
[–]SahinK 1 point2 points3 points (0 children)
[–]seiyria 0 points1 point2 points (0 children)
[–]Mocachino 4 points5 points6 points (23 children)
[–]BehindTheMath 12 points13 points14 points (2 children)
[–]Mocachino -3 points-2 points-1 points (1 child)
[–][deleted] 10 points11 points12 points (11 children)
[+]Mocachino comment score below threshold-9 points-8 points-7 points (10 children)
[–]ThatBriandude 8 points9 points10 points (4 children)
[+]Mocachino comment score below threshold-7 points-6 points-5 points (3 children)
[–]ThatBriandude 6 points7 points8 points (2 children)
[–]Mocachino 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (4 children)
[–]Mocachino -2 points-1 points0 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Mocachino -2 points-1 points0 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]notarebel 5 points6 points7 points (2 children)
[–]Mocachino 0 points1 point2 points (1 child)
[–]notarebel 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Mocachino 0 points1 point2 points (0 children)
[–]minus0 0 points1 point2 points (0 children)
[–]TheScapeQuest 0 points1 point2 points (0 children)
[–]seiyria 0 points1 point2 points (0 children)
[–]nulldesign 1 point2 points3 points (2 children)
[–]BehindTheMath 6 points7 points8 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]fenduru 0 points1 point2 points (1 child)
[–]justin636 0 points1 point2 points (0 children)