r/programming • u/brunocborges • Jun 15 '19
Announcing the Visual Studio Code Installer for Java
https://devblogs.microsoft.com/visualstudio/announcing-visual-studio-code-java-installer/49
12
u/pancomputationalist Jun 15 '19
I wish they would do Kotlin. IntelliJ is not too bad, but VScode is just so much more pleasant to work with.
8
u/brunocborges Jun 15 '19
There is an extension in the marketplace to help you write Kotlin code. Give it a try.
8
u/YM_Industries Jun 15 '19
There's a Kotlin Debugger extension too. No idea if it works, but it exists.
175
u/_cjj Jun 15 '19
If you're comparing an IDE to VSCode, you're doing something very wrong
87
u/Giannis4president Jun 15 '19
I know some guys that use the ide like an editor and than complain that Android studio/intellij/any ide are slower than editors like vscode and sublime.
Last time I tried to refactor some code in vscode it was a pain in the ass (as it is expected in an editor)
9
u/peenoid Jun 15 '19
Another problem with VSCode is it can't do debugging properly. Sure, it'll debug a regular Java class, but anything more complicated seems to give it fits.
For example, I have a project in which I run unit tests against Jersey servlets in a Grizzly servlet container. VSCode will allow me to step through the unit test code just fine, but as soon as the servlet code is invoked it just gives up. IntelliJ, on the other hand, handles this just fine.
Being able to debug servlet code in unit tests is a pretty simple use case and critical to some of my projects' workflows so without that VSCode is a nonstarter, unfortunately.
Great for my Vue SPAs though.
3
u/brunocborges Jun 15 '19
Have you tried this in recent releases? I'd like to learn more.
2
u/peenoid Jun 15 '19
It didn't work as of about a month ago. I'll have to make sure I'm up to date and try again.
1
u/angellus Jun 15 '19
When I was still doing Java, I was debugging Oracle ATG code just fine. The decompiler even worked really great.
54
u/null-case Jun 15 '19
Having IDE features is not an excuse for slow and sluggish software, we're in 2019 with 16-core CPUs and more and faster RAM than you'll ever need. I love JetBrains IDEs, but man there's a lot of room for improvement when it comes to performance.
8
43
u/Giannis4president Jun 15 '19 edited Jun 15 '19
Honestly I use plenty of Jetbrains IDEs and I don't feel them sluggish at all. I have 3 instances of PhpStorm and 1 instance of Android Studio open right now and the PC is running smoothly (latest Macbook Pro though)
Sure, it is slower that a sofware with less features (such as an editor) but considering what is does and the plethora of bloated software around, I don't think it is correct to define those brains are "sluggish". Just my opinion
38
u/C_Madison Jun 15 '19
People who say IntelliJ is sluggish usually have big projects and never bothered to increase the RAM allocation. IntelliJ will try for a very long time to live with the 750mb default and just have slow indexing, because it is simply not enough for the scope of most modern projects (if your project is really big it will OOM at some point and then recommend you to increase the RAM).
VS Code obviously doesn't have this problem, since it doesn't do any project indexing, checking or whatsoever. Hence the difference quality for refactoring, code duplicate checks, checking for correct using of database tables/columns in sql strings ..
I'd say if your project is simple enough that VS Code works for it: Go for it. You don't need IntelliJ for hello world or one-time programs that only took an hour to do.
12
u/Giannis4president Jun 15 '19
Yeah that's exactly my point. Vscode is an amazing software and have plenty of use cases, but claiming that it does the same thing of a complete IDE is just wrong
3
u/vqrs Jun 15 '19
I'd say if your project is simple enough that VS Code works for it: Go for it. You don't need IntelliJ for hello world or one-time programs that only took an hour to do.
But then I'd need to actually remember how to use the streams and collectors API....
1
u/akaroml Jun 22 '19
Essential code completion features like IntelliSense is available in VS Code if you have the Langauge Support for Java extension installed. No need to remember everything.
1
3
u/ElusiveGuy Jun 17 '19
increase the RAM allocation
That's something I've always disliked about Java. Just about every other runtime will grow/shrink as necessary ... with Java you have to decide on a max before launch, and prior to the most recent versions the default GC would never release memory back to the OS either.
While a RAM cap is vaguely useful, the default really should be "use as much as you need, but as little as possible".
2
u/aaron552 Jun 15 '19
VS Code obviously doesn't have this problem, since it doesn't do any project indexing, checking or whatsoever. Hence the difference quality for refactoring, code duplicate checks, checking for correct using of database tables/columns in sql strings ..
Depending on the language, there are extensions that do all of that for VSCode.
→ More replies (2)5
u/quentech Jun 15 '19
Depending on the language, there might be extensions, and if you're lucky even ones that are actively maintained, of highly varying quality, compatibility, performance, and overlapping or conflicting feature sets that do between some and much, but not all, of that for VSCode.
FTFY
6
3
u/vqrs Jun 15 '19
You're right but as already mentioned, increasing memory limits helps a whole lot. Also, there's some issue with a whole lot of JIT activity AFAIK.
I dabbled with writing IntelliJ plugins for custom inspections and such. IntelliJ will essentially be calling your stuff all the time with different AST nodes for example. So if you don't do your caching correctly and need to compute something, you can imagine how performance might not be stellar. A whole lot of the IDE works on this pull-based principle from what I understand. Actually, I'm surprised how bloody quick it is with all the calculations it's doing constantly as you change your code.
2
u/HittingSmoke Jun 15 '19
I'm using the Linux versions of GoLand for server development, IDEA for Android/iOS apps, and Pycharm for scripting regularly on eight-year-old hardware daily. I've never once had a single thought about them performing poorly on my old hardware.
0
Jun 15 '19
[deleted]
1
u/-jp- Jun 15 '19
My computer is over 10 years old and runs IntelliJ just fine. It does however benefit hugely from a lot of memory and a fast SSD, so that's what I'd suggest upgrading.
3
u/8lbIceBag Jun 15 '19
You seem like you know more than me. What's a good ruby IDE? vscode jobs sucks even with the extensions.
In an IDE I expect to be able to edit in place(while debugging), have code suggestions, go to definition, type in the "immediate" window without escaping characters, etc. But the official tools for that are half ass at best.,
8
u/fujieowfj Jun 15 '19
Dynamic languages in general have trash IDEs, because there is very little information the IDE can gather, unlike statically typed languages.
So if you develop Java, you will get an amazing improvement from using an IDE vs editor, but if you develop on a dynamic language, the gap from an editor and an IDE will be very small.
7
u/Giannis4president Jun 15 '19
Honestly don't know ruby. I very much like jetbrains IDEs, and they provide a ruby IDE called RubyMine. I suggest you to try it
3
u/TheTrendyTrout Jun 15 '19
RubyMine from jetbrains is excellent.
Unfortunately it doesn't quite do everything that something like Rider or Intellij does, but that's because the language is so dynamic that it physically can't. And if you end up deep enough into metaprogramming then no debugger can cope.
That said, RubyMine makes ruby development nice. I hate it otherwise. RubyMine has all the features you've mentioned above. Be aware though that if you use some sort of IoC container like https://github.com/subelsky/dim then you won't have intellisense on your resolved dependency because of the possible metaprogramming involved. It doesn't know what to suggest.
9
u/_cjj Jun 15 '19
I tried VSC as an alternative to Eclipse before I lumped out on JetBrains ultimate, having read all the praise on here, and I was a blend of 'savagely disappointed' and 'confused'.
15
u/chazmuzz Jun 15 '19
What features do you use in Intellij that you couldn't find in VSCode? It's a genuine question as I'm wondering what I might be missing from my workflow since I am satisfied by VSCode
12
u/vqrs Jun 15 '19 edited Jun 15 '19
I'll try to list a few things that others haven't mentioned yet.
VSCode has very very limited refactoring support, I'm sure more's to come because it's JDT (Eclipse) based, but currently it doesn't do a whole lot.
It can rename a symbol, extract a method and then that's about it very very soon.
IntelliJ for instance can migrate types and propagate type changes across entire call chains, fields, local variables, generic types etc where you get to choose where you want that propagation to stop and it'll tell you in advance where there will be compile errors after you run that refactoring. That's just one of the more advanced examples.
Or you'd like to extract out a certain part of a method not merely as a parameter, but use some functional interface instead and pass that bit of code as a lambda at the call site so you can invoke it differently somewhere else? IntelliJ can do that.
You are doing some heavy duty code changes and you wish you could define your own code transformation rules? IntelliJ can do that (structural search and replace, basically AST based pattern matching)
Of course, there are many more refactoring tricks it's got up its sleeves.
You are writing SQL inside your Java program and would like syntax checks? IntelliJ ultimate can do that. You would also like it to tell you when you've used a column that doesn't exist in your SQL? Tell IntelliJ where your databases are and it can do that. Did you split the SQL over several lines and used concatenation? Still works and much more.
Want to search your entire code base and get matching results as you type? IntelliJ can do that. VSCode uses ripgrep for that which is very fast, but it's different from indexing your source files such that most of the time, IntelliJ doesn't need to scan every file if you want to see all results.
And while we're at it, why not full text search all the library sources inside JARs with the same speed while we're at it? It does that, too.
Want to know where a variable's value can come from through an arbitrary chain of calls, field accesses from "unrelated" methods etc etc? It can do that. (use with care, it doesn't always find everything), but it's great to get an overview immediately without doing any work,especially in large code bases where you can't keep everything in your head.
You want to see only code completions that actually make sense? Or be recommended to use a sensible static method you haven't even imported yet or forgot existed? IntelliJ does that. You need to pass a functional interface and would like your IDE to recommend you which method references on objects or other stuff that's in scope you could pass? IntelliJ does that. You don't even need to choose what object's method references you want. As long as you have an inkling of what the method might be called, just start typing that, hit the smart completion shortcut once or twice and you'll get what you want. Unless you use Strings everywhere and all your methods return strings... Of course. Then you still end up with many possibilities.
Want instant warnings for code that probably doesn't make sense but compiles as you're typing even while the code is not syntactically correct? IntelliJ does that.
You can even easily define your own warnings for your project specific patterns that are known to be problematic.
Too lazy to fill in all other missing switch branches on an enum? IntelliJ does that.
Want to remove the surrounding try block two levels up because you don't need it? IntelliJ does that.
Want to flip around your if and else breaches while preserving semantics because you decide it would read better? IntelliJ does that.
There's tons of things IntelliJ can do. The last few I've mentioned are minor things, but once you get used to them, you'll end up using them all the time.
It gets to the point where you feel like the IDE can write most of the code for you. Using VSCode will then feel like work because you don't have access to all the code transformations.
If you have a question, feel free to ask.
5
u/chazmuzz Jun 15 '19
Thank you for a brilliant and informative post. I'll have to try out IntelliJ, but ultimately it's about improving my workflow. VSCode was a step up for me in terms of editor assistance because I was previously using a minimal sublime text setup.
I've been a professional developer for 10 years now, wondering why I've not learned to use an IDE properly.
4
u/vqrs Jun 15 '19
No problem. Just keep in mind, whenever you switch tools, you'll feel a lot less productive because all the things you've developed muscle memory for or specific workflows you'll have to relearn.
Also, sorry about the tons and tons of spelling mistakes and such, I typed that out on my phone as fast as I could :) I fixed a few things
3
u/ThisIsMyCouchAccount Jun 15 '19
improving my workflow
Think of it as trying to find a better workflow.
Don't try and force your workflow onto the IDE. Learn the IDE and find a workflow that works for you. You'll most likely find new ways to do things. You might have to set up a couple things but one you do you're good to go.
Maybe you can't run unit tests locally because of reason. You have to SSH into your dev server and run them. You can set up a "Remote Tool" in the IDE and assign it to a hot key. Press a button and the built-in terminal will show up, do the SSH and run the command automatically.
8
u/peenoid Jun 15 '19
VSCode can't do debugging properly. I have a project in which I run unit tests against Jersey servlets in a Grizzly servlet container. VSCode will allow me to step through the unit test code just fine, but as soon as the servlet code is invoked it just gives up. IntelliJ, on the other hand, handles this just fine.
15
Jun 15 '19
Refactoring and code generation. It's absolutely godlike in Jetbrains' products, and non-existent in VSCode.
5
u/chazmuzz Jun 15 '19
I don't think I've ever used code generation to its full extent. I've used some form of it in eclipse for generating getter/setter methods but it annoyed me so I stopped using them. I've never installed any vscode snippets, although I know they exist. Am I really missing out?
13
Jun 15 '19
Once you get used to Jetbrains' generation and refactoring it's truly hard to go back.
The most obvious thing that's missing is refactoring names - you can change the name of a method, class, variable, and it'll update in everything that references it, even comments and config files in other languages. And it's really clever - if you have a variable
someVariable, and another variablewithSomeVariable, and you renamesomeVariabletoanotherVariable, the second variable you had - initially calledwithSomeVariable, will be refactored towithAnotherVariable.You can extract functions from code blocks - select a block of code, extract it to a function, and it will automatically add all parameters required and place the function call where the block of code was.
Some other useful generators are getters/setters, automatically implementing everything in an interface, overriding anything, building constructors, etc.
There's just a ridiculous amount of useful features available.
2
u/mobiledevguy5554 Jun 15 '19
I've never used refactoring in any IDE because it never works well. Till AppCode and Goland. It's magic.
3
u/vqrs Jun 15 '19
You should. Java IDEs are all pretty good at refactoring. And considering you think AppCode and Goland are magic: IntelliJ is basically AppCode or Goland for Java. After all, those IDEs might probably not exist if not for IntelliJ's success.
Visual Studio is also pretty good at refactoring C#.
2
u/The_Droide Jun 15 '19
Automatically implementing Interfaces can be done in VSCode by pressing Ctrl + . on the class name and clicking „Implement methods“.
Getters and setters can be generated in VSCode directly too by placing the cursor inside of the class, opening code completion (Ctrl + Space) and selecting the desired getter/setter method.
Constructors can be generated by typing „ctor“ and selecting the first snippet that pops up in the code completion.
Extracting functions can be done in VSCode by hitting Ctrl + . on the relevant code snippet and clicking „Extract Method“.
Renaming stuff can be done with F2 on any class/method name, VSCode will automatically update everything including file names.
3
u/vqrs Jun 15 '19
If you reduce the features to bullet points, sure. However, it's the execution of the feature that counts.
ctorfor example is a template that simply fills in the file name as well as asuper()call. Yeah great, I could have defined that template myself without even installing Java support in VSCode.If you use extract method in IntelliJ, it will analyze your file and suggest other places where you can use the newly extracted method, it will even suggest to add more parameters if it detects other places that could then be replaced with your extracted method.
VSCode doesn't even ask me what method name I want to use...
IntelliJ OTOH: if it can't extract a piece of code because you're assigning to multiple local vars in the fragment for example will ask you whether you want it to create a custom class such that you can return multiple values from your method...
Whereas VSCode simply says "no code action available", that's not very informative.
1
Jun 15 '19
I’ve had this bite me in the ass more than once, though - using Refactor > Rename... on a variable and then finding out that it’s also changed unrelated variables with the same name.
1
Jun 15 '19
It shows a dialog indicating everything that's going to be refactored.
If you don't check that then yeet
2
u/scandii Jun 15 '19
what would you rather do, press two buttons or write 20 lines of code?
being a programmer is great. solving issues is amazingly satisfying. writing boilerplate code is not.
1
u/falconfetus8 Jun 15 '19
Both of those features do exist in VSCode, with extensions
10
Jun 15 '19
None that let you for example move a class, method, extract a function, etc.
1
u/The_Droide Jun 15 '19
You can in fact extract functions by selecting a segment, pressing Ctrl + . (or the lightbulb) and clicking Extract Method.
Also, automatically updating imports after moving classes is coming soon.
23
u/_cjj Jun 15 '19
If you want something that can compile and gives some faint semblance of an IDE, I'm sure VSCode will do fine. If you work on enterprise level Java, it's plainly obvious - VSC is just a code editor and won't do much beyond that.
IntelliJ actively tells you where you can improve your code, supports pretty much all application servers, integrates pretty much everything you need (including generating wsdl class files from xsd) etc. It's such an expansive question.
Probably better to ask the difference between VS and VSC, as that's pretty much the scale of it. IntelliJ community is a better comparison to VSC (as both are free) and it still comes out better.
3
u/aquaticpolarbear Jun 15 '19
Renaming a file? :P
1
u/The_Droide Jun 15 '19
Just select the class name, hit F2 and type the new name. VSCode will automatically update the file name and all imports of that class in the workspace.
17
u/Giannis4president Jun 15 '19 edited Jun 15 '19
Try to move an es6 JavaScript file in vscode and you need to manually fix every path-based import that involves the file. Proof: https://streamable.com/v14tb
Then do the same in WebStorm/PhpStorm/ultimate with support for js: every import in the project is properly updated.
Same thing for refactoring, finding usages of a class/method/variable, autocompletion is way smarter ecc ecc.
It comes at a price, but it definitely makes the developer life a bit easier (and the advantages are more clear the bigger a project gets. Most of the benefits are barely noticeable in a 10-files project where the developer has the whole project under control, but become life saving in a big project shared with many others)
26
Jun 15 '19
I just tried that. It asked me if I wanted to automatically fix import statements. I selected yes and it worked...
-7
u/Giannis4president Jun 15 '19
It doesn't. Proof: https://streamable.com/v14tb
It doesn't even highlight the fact that my imports are broken and doesn't refer to any existing file. PhpStorm start screaming at me if I try that
15
Jun 15 '19
You are not being completely fair. There are probably cases when a JS/TS project is somehow misconfigured and VSC can't handle imports.
However, in my (TS) projects with absolute imports VSC *does* magically fix imports when moving files. It can also rename variables, functions, classes intelligently (not regexp/string matching)...
However, there are limits in the language server protocol (https://langserver.org) used by VSC that do not bother IntelliJ whose products can indeed do more advanced refactorings.
More info:
https://discuss.kotlinlang.org/t/any-plan-for-supporting-language-server-protocol/2471/6
https://github.com/Microsoft/language-server-protocol/issues/61
→ More replies (1)2
u/Giannis4president Jun 15 '19
As pointed out in other comments, it works only if you have TS configured. Still I'm downvoted for showing a proof. Reddit is fun
8
u/Dooraven Jun 15 '19 edited Jun 15 '19
Try to move an es6 JavaScript file in vscode and you need to manually fix every path-based import that involves the file.
Was this a while back? I understand it if it was like a year ago but VSCode has had support for this for a while now.
The rest is achievable with extensions but yeah if you want something out of the box Webstorm is the way to go. VSCode vs Webstorm is basically like express vs rails.
3
u/Giannis4president Jun 15 '19
VSCode to the last version on my mac. See: https://streamable.com/v14tb
6
u/Dooraven Jun 15 '19
Huh, that's strange - is this option selected on your user settings? https://puu.sh/DGh3I/e655f28e3a.png
If it is and it doesn't work then yeah I understand your frustrations.
→ More replies (4)2
u/Giannis4president Jun 15 '19
Is it an extension? I don't have that option in my settings
→ More replies (0)2
u/fujieowfj Jun 15 '19
Lol, of course. An editor simply can't compete with an IDE, for a statically typed language like Java.
Editors are useful for dynamically typed languages, and especially those that aren't very popular.
39
u/free_chalupas Jun 15 '19
VScode is not exactly an IDE but not exactly a text editor either. It has a lot of features that I think are more typical of an IDE and if you add the right extensions and squint a little it really starts to look like one.
17
u/mrbaggins Jun 15 '19
99% of devs, especially hobby devs, will get everything they need out of VSCode as an IDE, especially for web dev but also stuff in various other eco-systems.
I'm using it as a full attached runtime debugger for C# + Unity. That's the main "IDE" use I needed VSCommunity for before hand as well.
7
u/vqrs Jun 15 '19
What you need is influenced by what you know. If you get used to certain conveniences, it's hard to go back. If you need to use a different language for example where such tooling isn't really possible, you still wish for them to be there.
Sure, VSCode is a great little one stop shop that covers a wide area of things, there's no denying that. You don't get that in IntelliJ Community.
0
u/quentech Jun 15 '19
99% of devs
That's absolutely ridiculous.
Go work on a WPF project in VS Code. Or WinForms. Full framework legacy projects? Make an Azure Cloud Service deployment. Bundle a windows installer. That's 1% of devs?
Maybe if you'd said "99% of hobby developers making new .Net Core web or console projects"
-1
u/mrbaggins Jun 15 '19
Maybe if you'd said "99% of hobby developers making new .Net Core web or console projects"
Or PHP, rails, or python projects. Or unity. Or a whole bunch more.
Wpf/winforms is the big hole.
I may have generalised too big, but you sure as hell went too small.
I also clarified "hobby" which takes out a large chunk of your targeted groups.
5
u/vociferouspassion Jun 15 '19
add the right extensions
I went down that road, trying to find all the right extensions, nothing compares to a decent IDE like IntelliJ, Visual Studio, Eclipse or NetBeans.
2
u/vqrs Jun 15 '19
Well, writing an IDE overnight isn't easy :) No wonder they're using an Eclipse/JDT-based language server.
I'm guessing the bulk of the work goes into exposing the JDT stuff via the language server protocol, which would explain why "VSCode" can't do much of the stuff Eclipse can.
10
u/AngularBeginner Jun 15 '19
What I miss the most: Being able to open multiple windows. This is just not supported with VS Code.
4
u/vqrs Jun 15 '19
Let's not pretend that multiple windows for the same project is something IntelliJ handles very well.
Recent files and many other keyboard based navigation features don't interact very nicely with it, especially if you happen to have the same file open twice.
2
u/Chii Jun 17 '19
You can drag a tab in intellij out as a new window.
1
u/vqrs Jun 17 '19
I know you can. But they don't inreract very well with the history and recent files and such, especially if you have the same file open in multiple windows.
Also, if you invoke a popup while inside that window, sometimes the focus will go back to the main window.
4
u/falconfetus8 Jun 15 '19
Just open another instance of VSCode.
12
u/AngularBeginner Jun 15 '19
Which will duplicate resource consumption. It will spin of a new instance of the TypeScript language server (in my case), and build up all the information again. Whenever I modify a document it needs to update in both windows.
Besides that: You can't open the same folder twice. It will always just bring the existing VS Code instance to the foreground, instead of opening it a second time.
→ More replies (3)1
u/_cjj Jun 15 '19
I'm guessing that includes opening the same file in separate windows too, which I find essential for large classes
8
u/AngularBeginner Jun 15 '19
You can open a file in several tabs, but having a single project open in multiple windows is not something that is supported. It's a limitation of Electron, and it's the highest rated issue in the VS Code repo. https://github.com/microsoft/vscode/issues/10121
13
u/falconfetus8 Jun 15 '19
Not necessarily. What can an IDE do that VSCode can't? With extensions, I'm able to:
Write code (duh)
Run the program
Set breakpoints and launch a debugger
Run my unit tests
View my git commit graph
Use tools like "find all references" and "go to definition"
All of that can be done inside VSCode, without having to launch a separate program. And for everything I can't do with an extension, there's the integrated terminal, ensuring I never need to leave VSCode.
If that's not an IDE, then IDK what is.
13
u/scandii Jun 15 '19 edited Jun 15 '19
this is just emacs/vim all over again.
if all you want is a program that lets you write code and debug a simple text editor will do just fine, and that is essentially what VS Code is with some added flare.
so here's some things you can't do in VS Code but can do in Visual Studio:
add a mac build server if you're developing in Xamarin for iOS
profiling (why is my code running poorly?)
live debug Android apps
connect external services such as SQL servers
SDK management
generic code generation and/or refactoring
now, I'm sure there's plenty of plugins made for these things already and I just don't know about them, that's the real strength of VS Code.
heck, a major bummer for me personally which is opinion based and not so much "must have" is that VS Code doesn't support ReSharper.
but as a professional developer VS Code is missing a ton of features out of the box that are simply essential for development and especially fast development for certain projects.
that said, I think VS Code is an excellent product for the typically frontend-y stuff or script-heavy stuff like TypeScript, React, any sort of YAML file like Dockerfiles, Kubernetes deployments etc, so it definitely has it's place and once it matures as a product further I can definitely see it competing with more traditional IDE:s as more IDE functionality is plugged in via the plugin system.
14
4
u/vqrs Jun 15 '19
I don't want to argue on the IDE vs editor point really, but I gave someone a long list of stuff that I value in IntelliJ that I miss when I need to use VSCode.
-17
u/YM_Industries Jun 15 '19
Because VSCode will win?
(Or are you trying to say VSCode isn't an IDE? Because that would be a pretty stupid claim)
-7
u/_cjj Jun 15 '19
I'm guessing it's "opposite" day today?
It's pretty stupid to call VSCode an IDE because it isn't - it's an editor
3
u/YM_Industries Jun 15 '19
It has an integrated terminal, file browser, version control, step-by-step debugger. What more do you need to call it an IDE?
If IDLE is an IDE (which it is) then VSCode certainly is. Maybe you're getting it confused with Atom?
2
u/_cjj Jun 15 '19
I've already replied to a similar posts around this. If you want to call it an IDE (which MS don't), it's a crap one. If you want to call it a code editor, is a good one.
→ More replies (6)0
Jun 15 '19
[deleted]
0
u/_cjj Jun 15 '19
As per Microsoft:
"Visual Studio Code is a streamlined code editor with support for development operations like debugging, task running, and version control. It aims to provide just the tools a developer needs for a quick code-build-debug cycle and leaves more complex workflows to fuller featured IDEs, such as Visual Studio IDE."
If you think VSCode is an IDE, you probably haven't needed one yet.
0
-5
u/PM_ME_UR_OBSIDIAN Jun 15 '19 edited Jun 15 '19
Is there a qualitative difference between something like VS Code and something like IntelliJ? Because I don't see it.
E: You seem dedicated to turning this thread into a dumpster fire. I think I'll just mute you. Nothing of value lost.
3
u/_cjj Jun 15 '19
I could just ignore others, but I've been polite enough to reply. Don't ask someone a question then get annoyed if they take time to respond.
-3
u/PrestigiousInterest9 Jun 15 '19
Will this be the most stupid comment I read all week?
VS Code IS an IDE. They reason the team doesn't call it an IDE is because it doesn't come with everything out of the box. You need to add features via plugins. I have at least half a dozen plugins and I'm only using 1 language and git.
Also it runs faster than pretty much any IDE I used
3
u/_cjj Jun 15 '19
So they don't call it an IDE because it isn't one? Hmmm...
"But I can turn it into one with loads of plugins!"
A shed isn't a house, but if you stick enough furniture in it you might be able to use it like one. Yes it'll be cheaper and more mobile, but comparing it to an actual house....
0
u/PrestigiousInterest9 Jun 15 '19
Let me rephrase. Almost all IDEs are shit. VS Code is an IDE. Biggest difference between that IDE and other IDEs is it isn't automatically configured for one specific language
Learn what IDE stands for and you might understand what VS Code is.
50
Jun 15 '19
you're right, the best product in the industry is not too bad
0
Jun 15 '19
[deleted]
41
u/Kwinten Jun 15 '19
"Coding speed" isn't the only metric. IntelliJ is unbeatable when it comes to refactoring tools, and you really really can't argue that. There's a reason why you need JetBrains plugins to get proper refactoring tools, code completion, code analysis in Visual Studio :D
"Best" might be subjective, but IntelliJ is objectively hard to beat on many essential features.
5
u/Creator13 Jun 15 '19
Coding speed is directly dependent on good refactoring tools though... I've been programming C# in Rider for the last couple of months for Unity. It's baffling to see someone telling me to add an import when I was following a tutorial about an obscure topic and realizing I have not worried in the slightest about my import statements for the past couple of months. Well, except when I make a typo and it thinks I mean an entirely different class in an entirely different package and I suddenly end up with the weirdest import but hey that's my own fault.
But the tools are just more intuitive compared to Visual Studio (not Code). Of course that's subjective but it still counts very high for me.
1
Jun 15 '19
I mean, you just said one metric alone is hot relevant and decided to refute it with another single metric.
Refactoring easiness isn't the only metric either.
7
Jun 15 '19
The refactoring support is perhaps the most prominent example of IntelliJ's actual understanding of Java code which powers the features that improve productivity a lot, compared to a simple editor.
Together with extensive support for shortcuts, custom templates and search functions, what metric exactly would it be where other IDEs/editors could compete?
2
Jun 15 '19
I just wanted you to show that your comment poking a hole in another's argument has the same hole in it. I'm not arguing pro or against IntelliJ. Use whatever the hell suits you.
1
4
1
u/killerstorm Jun 15 '19
I bet you could find people who use just vanilla Emacs/Vim and can put out code faster than you can in Intellij, all things equal.
You need to be a savant to put out code fast without advanced auto-completion and error checking. Like remembering all classes, methods and their parameter sequence from all libraries you're using.
0
Jun 15 '19
[deleted]
2
u/vqrs Jun 15 '19
Different person here, but that's not "vanilla" anymore, right?
Also, that would require your LSP to be on par with IntelliJ in terms of code completion which it isn't. Not to mention the plethora of other ways that IntelliJ has to transform and generate code for you which you don't get via current language servers.
I'm guessing when you meant "syntax checker" you meant semantic analysis as well, right? Getting the syntax right is the easy part.
1
u/killerstorm Jun 15 '19
You wrote "just vanilla Vim". Running LSP is cheating -- LSP is basically an IDE which is accessible through API.
0
Jun 16 '19
[deleted]
1
u/killerstorm Jun 16 '19
Sorry, will clarify. I meant that vanilla Vim supports (out of the box, empty vimrc) auto-completion and go-to-definition that's suitable for most purposes. What it doesn't do however is resolve your imports in language like Python or jump to definition in a different file.
Are we still talking about Java/Kotlin? In 90% cases you need auto-completion and go-to-definition from other files.
And moreover, what I mean by auto-completion is that after you write
foo., it should show Foo's methods. Does Vim support that?And then when I select say,
foo.frobenize(, I really need to see argument names and types. Can Vim show them?If not, how the fuck you can know the order?
Most of the time you don't need that
LOL. Do you typically write a program as a single file? And rarely use stdlib classes?
Or do you consult the manual for every call you make?
1
Jun 16 '19
> Do you typically write a program as a single file?
No; I meant that I didn't need the go-to-definition feature to resolve imports some of the time. However, if you need to do that, then use an LSP - there's nothing wrong with that, and it's still more minimalist than VScode or an IDE.
3
u/vqrs Jun 15 '19
Okay, I'll ask: What do you find that "much more pleasant to work with" about VSCode? Genuinely curious.
-4
105
u/A_Light_Spark Jun 15 '19
Finally I can fully ditch Eclipse.
150
u/Scyth3 Jun 15 '19
I've been using intellij for Java development. Eclipse is...yeah
75
u/A_Light_Spark Jun 15 '19
The thing is, Eclipse itself is fine... Not great, but fine, tolerable. But then everytime trying to upgrade it is basically a hazard, and sometimes it can just decides to shit the bed and gets corrupted. Meh.
35
u/Scyth3 Jun 15 '19
I used eclipse for over a decade. It just always felt sluggish/slow. I started with intellij 3 years ago and it's been super fast compared. It has the same powerful refactor tooling, but everything just feels and behaves like you'd expect.
I do use vscode for my VueJS frontend work though. It has really great tooling for that kind of thing. I tried Java in VSCode and it was a hot mess a few months back
8
2
u/A_Light_Spark Jun 15 '19
Yeah I pretty much the same experience. So glad to see more support for Java on VSCode.
1
u/DubbieDubbie Jun 15 '19
Aye I have decided to transition to intellij from eclipse, but I use VScode for everything else, from Haskell to python to c.
-2
3
1
Jun 15 '19
Eclipse ist totally fine for Java. But adding Maven and Lombok makes it unusable performance wise. I sometimes still fire up Eclipse Indigo. It feels like 20 times faster than latest version
1
1
u/vine-el Jun 15 '19
Eclipse was much better before Eclipse 4 came out. I stayed on 3.x for as long as I could, but then Java 8 came out and I switched to IDEA.
0
Jun 15 '19
[deleted]
3
5
u/-jp- Jun 15 '19
I think Eclipse deserves its own share of the blame for awfulness. Even other JVM languages are (or were--I must confess I gave up on it entirely years ago) absolute nightmares to deal with in Eclipse.
0
Jun 15 '19
[deleted]
2
0
Jun 15 '19
Well, at least it's not Eclipse based. But Netbeans definitely is not an IDE if you want to be productive. It's sadly Atmel Studio (VS based) is being deprecated in favor of merging into it. Literally you can be more productive programming in Notepad and just using cli to start openocd than use Netbeans.
30
Jun 15 '19
IntelliJ Community is better than Eclipse. IntelliJ Ultimate is the best IDE in the world. And not just for Java. The JavaScript and python extensions are first rate. Much better than any VS Code plugin. Like, not even close.
16
u/OldLadyUnderTheBed Jun 15 '19
JetBrains has several IDEs, if you like the python extension for intellij, you will propably like PyCharm.
As for VS Code, its a text editor, not an IDE. It's not intended to be better than intellij or others, just a (very good) lightweight alternative.
1
u/pjmlp Jun 15 '19
Only for those that have a gamer workstation.
I rather keep Eclipse than having an airplane getting ready for takeoff.
6
-21
u/vscde_gtr_thn_jtbrns Jun 15 '19
VSCode is a better experience all around
18
6
2
u/ejfrodo Jun 15 '19
If you write Java every day, IntelliJ cannot be beat. It's simply amazing at understanding and compiling Java in many ways that VSCode truly can't. I use VSCode every day for JS and love it but this is nonsense
9
u/PM_ME_UR_OBSIDIAN Jun 15 '19
This is just a basic convenience, it does nothing that you couldn't do yourself in an hour.
2
Jun 15 '19
If only Visual Studio Code could mimick the exact way selection and code navigation works in Eclipse.
2
u/A_Light_Spark Jun 15 '19
Eclipse did a few things right. The code slection and syntax highlighting are usually better thsn others. But then they lose out in other areas, mainly in usability and customization.
2
4
u/geodel Jun 16 '19
I always wanted some Java support in lightweight text editors. Now when it is finally there these editors are about as heavy as fat Java IDEs.
1
u/Carighan Jun 17 '19
Haha, true. I need this support in my Notepad++, not in my gimped Chrome browser.
0
u/PhoenixPrimeKing Jun 15 '19
Why do we even need this when we have Intellij.
3
u/quests Jun 15 '19
If it integrates with Tomcat, it would give a free option. You have to pay for that with Intellij.
1
146
u/theoldboy Jun 15 '19
Because having different options is good?
Not everyone is an Intellij fan, not every Java project is enterprise-size and requires the features and bloat of a full IDE to work on.
29
u/IronicallySerious Jun 15 '19 edited Jun 15 '19
VSCode in my opinion is an IDE already but the fact that I can just turn off the wide variety of its extensions makes it a perfect match for both lofi and hifi programming
3
u/snowe2010 Jun 15 '19
You can turn off a bunch of unnecessary stuff for small projects in intellij as well.
4
u/IronicallySerious Jun 15 '19
I am not denying that. The comment I replied to was assuming IntelliJ can't do that
→ More replies (3)6
6
4
u/Fr4ntO Jun 15 '19
because idea is not free and having no competitors could push the price to the limit, where ordinary devs could no longer afford it.
12
8
Jun 15 '19 edited Jun 15 '19
[removed] — view removed comment
1
u/hansbrixx Jun 15 '19
Off topic but the last time I used Ionic was when it was still tied to Angular 2+. How is your experience with Ionic now?
2
u/plee82 Jun 15 '19
Main issue has always been test servers. How can I run vscode java to execute code in a test websphere server?
2
Jul 02 '19
I am full on the vim train but it seriously looks like I will have to try VSCode some day. (not a Java dev but from how active the team is)
1
u/Carighan Jun 17 '19
Hrm, sounds fun for education or light development?
I'll be honest, as a Java developer, I can't see myself wanting to do coding in VSC instead of an actual IDE. Not that VSC is bad, Java just - at least to me - lacks the "pseudo IDE text editor" use case. You either need just a text editor / log viewer, and then you want it as lightweight and fast as possible, or the proper IDE, in which case you're probably firing up IDEA.
-1
u/senatorpjt Jun 15 '19 edited Dec 18 '24
march rob scarce zonked scary pot rhythm sip zealous subsequent
This post was mass deleted and anonymized with Redact
10
u/xTeixeira Jun 15 '19
Well the Mac version is coming too. And if you need/want an installer on Linux you're doing something very wrong.
0
u/CarthOSassy Jun 15 '19
I keep coming back to eclipse. We use some other IDE for a few weeks, then run into a problem. Someone loads up their eclipse workspace, and it immediately notices a ton of errors or whatever is causing the problem.
Everything else just seems amateurish and incomplete. Eclipse is a pain, but it sort of forces you to figure out what you're doing.
I'm so tired of seeing the shit other IDEs are churning out, get checked in. Why are they blank lines all over the middle of this gradle file? Why does the indentation make it look like these blocks are one? Why is your build not running the linter? Why do you keep checking in old files? "I don't know, that's just what intellij/vscode did."
Ok, can you do (this)? "I'm not sure, let me show you what it looks like when I open vscode..."
I'm teetering on the edge of just straight up requiring my team to use Eclipse.
4
u/vqrs Jun 15 '19
Honestly, it sounds like you have a people problem more than a tooling problem.
(If you hadn't mentioned Gradle, I would have guessed you're using Eclipse as a build system shudder)
1
u/CarthOSassy Jun 15 '19
Yeah, sure. But I'm interested in what technology can do for my people problems.
And lol at eclipse as a build system. Heck - why not a runtime? The JDT will let me get to production without fixing all my bugs.
#MoveFastAndBreakThings
#Agile
#Kidding
-3
Jun 15 '19 edited Jun 16 '19
I tried atom, vscode, eclipse and phpstrom, phpstorm had the best performance on my ThinkPad. (slow auto completion and linting on the electron based editors, eclipse with an old design and not as many features as phpstorm thus I choose phpstorm)
0
u/CabbageCZ Jun 15 '19
Anyone know what's up with all the duplicate comments in this thread? Bots, or just Reddit's engineers making an oopsie somewhere again?
EDIT: While submitting this it took a while and then said 'you are doing that too much, please wait [..]', some sort of rate limiting stuff. Then I checked my profile, bam, two comments. So yeah, Reddit engineers broke shit (unless it's a recent RES incompatibility?)
-43
u/ivancea Jun 15 '19
Just why. Are they going to do an installer for every language? Hell, it's VSCode, not a "Java IDE"
39
-47
u/7PIzmA9ubj Jun 15 '19
And the bloat begins (continues?)
33
-7
u/Zofren Jun 15 '19
I guarantee VSCode is less bloated than whatever garbage Java IDE you're using.
2
u/ponybau5 Jun 15 '19
Vanilla VSC was eating ~500MB ram idle with nothing open while intellij was maybe just over a gig with a smallish project open, however it had a lot more features built in to justify the bloat.
1
u/vqrs Jun 15 '19
As soon as you start working with Java files in VSCode, it'll fite up the Eclipse based Java language server. It's not magically fast or light on memory usage just because you don't have the other Eclipse running.
IntelliJ OTOH will also start a build daemon or gradle daemon and whatever else is needed that'll eat tons of memory.
0
0
Jun 15 '19
[deleted]
35
u/Saiing Jun 15 '19
I suspect that’s because the vast majority of C#/.net devs will be using full blown Visual Studio. VSC is a great lightweight editor, but I can’t see many compelling reason to use it over VS (at least if you’re on a Windows machine) for .net development. Before people start jumping in, I’m sure reasons exist, but for most devs VS is going to provide the more full featured experience all round.
8
u/CantBeChangedLater Jun 15 '19
I think this is spot on. I still use vs code for a few things but it's as a nice editor rather than an ide
5
-4
111
u/uw_NB Jun 15 '19 edited Jun 15 '19
how is the integration between VSCode and maven?
I am trying Eclipse java LSP (with neovim) and it seems to have problem with multi-module maven + Lombok + MapStruct used together in the same project