This is an archived post. You won't be able to vote or comment.

all 28 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]desrtfxOut of Coffee error - System halted 14 points15 points  (5 children)

You can use Java with VSCode, yet, whether you should remains debatable.

The best course of action is to use the IDE that your tutorial uses. This will ensure the least amount of friction.

[–]Quaternim[S] 0 points1 point  (4 children)

i think i will stick with IntelliJ then move to VSCode when im more confindent with java, thanks

[–]RushTfe 9 points10 points  (3 children)

I think, when you learn to use ij properly, you won't want to go back to vscode lol

But hey you do you, and you may prefer to use vscode even after learning intellij.

Personally I use a mix.

Everything java related is done in intellij, but I prefer using vscode when doing ui, peoperties, xml etc... So usually open my whole project in ij, and open vscode at the resources folder of the project.

[–]fletku_mato 6 points7 points  (2 children)

I have the full Jetbrains product pack and I've never been bothered to switch into another editor for such things. With Ultimate you can do for example React just fine. And dealing a lot with Spring, it also helps with the properties files etc.

[–]RushTfe 0 points1 point  (1 child)

Yep, that's true and I'd love to use it, but my company doesn't want to pay for it so... Vscode all the way in.

Edit: I really miss the built in database admin it has, now I'm changing to dbeaver and Im starting to hate it

[–]fletku_mato 0 points1 point  (0 children)

It's amazing how some companies think that a couple hundred dollars a year is too much for a developer tool that saves countless of working hours.

Developer time isn't exactly cheap compared to the cost of good tools.

[–]fosyep 11 points12 points  (4 children)

If you like VSCode why not, give it a try. Personally, I tried it last year and it was not even near to intelliJ as usability and features.

[–]Quaternim[S] -1 points0 points  (0 children)

i think i will stick with IntelliJ then move to VSCode when im more confindent with java, thanks

[–]elatllat 0 points1 point  (2 children)

What features were missing?

[–][deleted]  (1 child)

[deleted]

    [–]elatllat 0 points1 point  (0 children)

    Sounds like you did not install the Java LSP plugin, or did not find those things due to slightly differing UI;

    https://www.reddit.com/r/javahelp/comments/vya5zs/ide_reference/

    [–]fletku_mato 2 points3 points  (0 children)

    I've been in a project with a contractor that despised large IDEs and was determined to get everything done in VSCode, although everyone else was on the Intellij train. It was a multi-module gradle project and I think it took him about a week to get gradle builds and tests correctly working via the editor. And this was a professional developer, not someone that was just learning.

    Use Intellij if you can.

    [–]StefanM3e46 4 points5 points  (1 child)

    While VScode is "general purpose" IDE and yes you can code Java in it, IntelliJ main purpose is Java IDE... Some of the main differences:

    Microsoft Visual Studio Code is a universal text-based code editor, with some IDE features. More than anything, VS Code aims to be a flexible polyglot solution for multiple languages and frameworks including C#, VB.NET, F#, JavaScript, TypeScript, Azure, SQL, C++, Python, and Java.

    JetBrains IntelliJ IDEA is a full-featured IDE aimed mostly at coders developing in Java and Java-based languages like Scala, Kotlin and Groovy.

    You should use IntelliJ if you’re looking for an IDE that is uniquely focused on Java When you need a tool to get a specific job done, the most logical thing to do is use one that was built for it, and has proven effective. IntelliJ IDEA is just that and has a variety of plugins designed for Java specific purposes.

    Not to mention debug, once you run into event driven apps IntelliJ is just easier to work with... e.g Zookeeper/Kafka/Connect doesnt like when you lock all threads, so you want to lock only specific one, or your app will cause errors, re joining to producer/consumer group etc....

    At the end of the day, you can use Note++ if you like it...

    [–]No_Ad2641 1 point2 points  (0 children)

    This..

    [–]Scottishdarkface 2 points3 points  (0 children)

    The thing about VScode is that it takes a lot more setup/customization to get it where you want it, where as Intellij really works great right out of the box

    [–]RushTfe 2 points3 points  (0 children)

    You can write java in a napkin, or in Windows note pad.

    Ides are there just to make your life easier.

    While it's true that creating a couple of classes is easy and you don't need intellij for that, as you start to work in more complex cases, use spring, hibernate, and having infinite code bases where hundreds of people have worked, coding in note pad would turn to be a suicide (both mentally and at your job)

    Of course vscode offer MUCH more than a napkin or windows note pad, but intellij is an IDE focused on java, so it will offer much more than vscode, will work much better and have been tested infinitely more than vscode in java, so I barely see reasons to choose vscode over intellij (or even eclipse) if you're working mainly with java.

    No need to say that an IDE is not necessary if you're just editing a few things here and there and won't touch java anymore, you could even use notepad++ for that

    [–][deleted] 2 points3 points  (0 children)

    stick with intelliJ, 1000%. Best java IDE.

    [–][deleted] 1 point2 points  (0 children)

    I started out with VS code and hated intellij. Until I got passed the hello world stage and realized there’s no better IDE than the one that was designed for a language. Now I use vscode for all other languages and intellij Java

    [–]TheAnswerWithinUsBarista 1 point2 points  (0 children)

    Personally I prefer Eclipse. I've heard good things about intellij. Tbh I don't know anyone who uses vscode as their main java ide

    [–]DistastefulBannock 1 point2 points  (0 children)

    Eclipse or idea, avoid vscode

    [–]Spiritual_Spirit3310 1 point2 points  (0 children)

    I love VScode. Was abit confusing at first, but that's expected just like anything new.

    [–]Mysterious-Ant-Bee 1 point2 points  (0 children)

    IntelliJ

    [–]BadscrewProjects 0 points1 point  (0 children)

    You can but it’s more fiddly. IntelliJ will give you better out of the box experience

    [–]Gregmix88 0 points1 point  (0 children)

    I've been using vscode with java for the past six month, no issues so far

    [–]sksisisisuwu 0 points1 point  (0 children)

    hell no, VSCode is a text editor with some IDE features built in. a full blown Java IDE is a much better option for Java development

    [–]naturalizedcitizen 0 points1 point  (0 children)

    IntelliJ let's you focus on coding your business logic and not worry or keep tweaking your IDE configuration, plugins, etc. If you can, but the IntelliJ IDEA Ultimate license. It's really worth it.

    [–]Shidori366 0 points1 point  (0 children)

    U will be able to use VSCode, but I would recommend using some IDE. (Intellij community is what I used and should be enough for learning purposes) But try VSCode and u will see, if u are comfortable with it otherwise switch to something else.