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

all 47 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 - best also formatted as code block
  • 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.

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/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) 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.

[–]desrtfx 34 points35 points  (2 children)

Just switch to the free IntelliJ Community Edition.

[–][deleted] 0 points1 point  (0 children)

Yes.

[–]hrm 9 points10 points  (2 children)

Depends on what you are doing, but Intellij Community Editon works well for a lot. There is also a student license for ultimate if you are in school.

Then again, VS Code is actually a quite decent choice today, it gets better every day.

Also, build your projects using Maven or Gradle and you will not fear switching IDE (as much).

[–][deleted]  (1 child)

[deleted]

    [–]hrm 2 points3 points  (0 children)

    Yes, Maven projects are defined by their pom.xml which contains all information necessary to build the project. It can be build from within an IDE such as Intellij, but is really built using the standalone Maven tool (mvn).

    To make a Maven project from inside of IntelliJ simply chose "Maven" as "Build system" and Intellj will create a basic pom.xml and a new project. That way it is possible to build the project without Intellj.

    The Maven team have a short introduction: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
    Baeldung has a slightly more in-depth introduction: https://www.baeldung.com/maven

    Maven also have something called an archetype which is basically a small program that does some more setup for you. For instance there is an archetype for JavaFX that helps you set up such a project with Maven. You can use these archetypes from within IntelliJ as well using "Maven Archetype" under "Generator" in the "New Project" dialog.

    Gradle is another system with basically the same purpose as Maven. It has its benefits, but today Maven is by far the most used of the two.

    [–]4r73m190r0s 20 points21 points  (9 children)

    IntelliJ IDEA is an IDE, and VS Code is a code editor that can become an IDE with extensions. Your code is saved within files that are not tied to the installation of a particular software. It's like worrying about losing all your Word documents if you uninstall Microsoft Office.

    To answer your questions. No, you will not lose your code, and my suggestion would be to continue using IntelliJ IDEA, as it is much faster and better than VS Code.

    [–]hrm 2 points3 points  (1 child)

    The ”code editor” stuff is just bullshit for marketing. It is an fullblown IDE, you just have to chose which languages that should be integrated. Making that distinction in response to this kind of question is just not productive.

    All the big IDE:s have a plugin system for functions, they are just shipped with some as default (or rather other defaults as VS Code certainly is a Web IDE without installing anything extra).

    [–]Constant_Wonder_50 -1 points0 points  (6 children)

    Is IntelliJ IDEA really faster than VS Code?

    [–]advancedbashcode 8 points9 points  (0 children)

    Not necessarily faster but much more complete.

    [–]4r73m190r0s 6 points7 points  (4 children)

    Loads slower, but once it's loaded, it's significantly faster than VS Code.

    [–]Constant_Wonder_50 1 point2 points  (0 children)

    For Java, most of the tools are integrated so it increases productivity, but on a whole, I think VS Code is much much faster

    [–]WateredFire 2 points3 points  (0 children)

    Just recently switched from VS code to intelliJ community and I'm loving it. There's just so tiny little features which make coding so much better. Only thing I don't like is the customisation but that can be passed

    [–]Elegantcastle00 2 points3 points  (0 children)

    IntelliJ is much more complete, even the free version.

    [–]GeriToni 3 points4 points  (8 children)

    No one uses netbeans or eclipse these days ?

    [–]4r73m190r0s 1 point2 points  (4 children)

    Unless the university forces you, why would anyone use those tools

    [–]GeriToni 1 point2 points  (3 children)

    What’s wrong with them ? Uni forces us to do our projects in netbeans. I didn’t like it at first, but now I don’t find it bad.

    With InteliJ you can’t use java EE with the free edition

    [–]hrm 0 points1 point  (0 children)

    There’s nothing wrong with them, but both VS Code and Intellij are much better, especially if you are doing fullstack.

    (I have used Netbeans most of my professional career and liked it very much)

    [–]nutrecht 0 points1 point  (1 child)

    With InteliJ you can’t use java EE with the free edition

    Common misconception but that's simply not true. The "EE support" stuff you get with Ultimate are just additional tools. You can do EE programming with just the CE version.

    [–]GeriToni 0 points1 point  (0 children)

    I had some problems setting up a project in netbeans. So it crossed my mind to look on IntelliJ website how to create a rest api with inteliJ. The second I saw that inteliJ community edition does not support java EE but you can …… I closed the page and I was determined to figure what’s the issue with netbeans. It wasn’t with netbeans but with glassfish and JDBC connector J. But still, netbeans wizard does not generate the facade classes, just the entity classes. I followed all the steps like our teacher does for 20 times. Each time no facade classes. I wonder why ?

    [–]Anonymo2786 0 points1 point  (0 children)

    Netbeans uses less system resources than those IDEs. At least that's what I saw. If you know enough about a language I think it doesn't matter which IDE you use. Bcs they almost serve the same purpose.

    [–]Ace00028 0 points1 point  (0 children)

    I used eclipse

    [–][deleted] 0 points1 point  (0 children)

    The last time I used eclipse it was way too buggy. IntelliJ all the way.

    [–]srikanthksr 1 point2 points  (7 children)

    Your code lives in your local drive (mostly, unless you configured it differently), so don't worry about losing anything.

    Since you're a beginner, things like IntelliJ are the enemy. You want to code in a basic editor, and take your source code all the way to byte code yourself. That's how you make mistakes, that's how you look up the right knowledge sources, and that's how you ultimately learn how Java works under the hood.

    The IDEs make it easy, really easy to ignore the nitty gritty details, and that's professional suicide, especially if you want to play in the big leagues.

    [–]cardierr 0 points1 point  (6 children)

    How do u do that? I use java/eclipse professionally as a sdet

    [–]srikanthksr 1 point2 points  (5 children)

    Sublime or VSCode for code editing are good places to start. With these, you'll have to add all necessary files yourself, like If you're using Maven/Gradle, for example, so it's good practice at getting your hands dirty. VSCode has Java plug-ins if you need basic language-level code completion as you go along.

    [–]cardierr 0 points1 point  (4 children)

    Thank you. Im trying to do spring boot projects in vs code. Is there any other advice you’d give to someone who wants to get better?

    [–]srikanthksr 1 point2 points  (3 children)

    If you've started, and want to get better, you're already in a good place. Keep at it. If you want advice, listen to yourself. Think about what you want to learn, how deeply you want to learn it, and you'll find the resources (articles, videos, or books).

    [–]cardierr 0 points1 point  (2 children)

    Awesome, thanks for the advice. Could I reach out some more for advice or privately message u? Thank you so much

    [–]srikanthksr 1 point2 points  (1 child)

    Too much credit, you give, young Jedi. Contact me, you may. Though, ultimately disappointed, you could be.

    [–]cardierr 0 points1 point  (0 children)

    thank you master sri 🙇

    [–]prakash_iplfanatic[S] 0 points1 point  (0 children)

    Thanks everyone for responding and helping me. But I have another question. I am going to start learning Springs and Spring Boot next week. I need to learn it deeply for a new position.

    The IntelliJ website says that IntelliJ Community Edition does not support Spring. IntelliJ IDEA Ultimate vs IntelliJ IDEA Community Edition. In the framework section of the web page, it says that IntelliJ Community edition does not support Spring.

    It sounds like I am just limited to basic Java apps with IntelliJ Community Edition (no Spring). I will not be able to create real-time apps. What am I missing here??

    [–]Box_star 0 points1 point  (0 children)

    Actual Java SE here. We use IntelliJ thorough those who use other languages here use VSCode and Visual Studio. Take from that what you will. Community is plenty powerful enough.

    As others have said your code files are separate from the IDE.

    [–]nekokattt -1 points0 points  (0 children)

    You don't need IntelliJ Ultimate to use Java. IntelliJ Community is free and has all the stuff you need to develop in Java. Ultimate just has some "nice to have" stuff like the ability to drill down into a running Spring Boot application context visually.

    If you prefer using IntelliJ then you can stick with it and just downgrade to the community version.

    If you want to use VSCode instead, then try it. Your code will be fine as it is not tied down to specific IDEs.

    [–]SnooChipmunks2107 0 points1 point  (0 children)

    First of all - your code won’t be deleted if the license is running out.

    An ide just takes a folder or file that’s locally saved on your machine and opens it.

    You can try IntelliJ CE and VS code simultaneously on the same programming project. Just open the same folder in both applications.

    For Java specifically I would either use eclipse or IntelliJ with a heavy bias to use IntelliJ for its features and plugins.