But can Eclipse compile codes written by VS Code??
Technically, yes. But if you intend to use Eclipse anyway, there's not really a good reason to use VS Code along with it. Since Eclipse is an IDE, it already has a code editor built into it. The point of an IDE is that it already has everything you need for development, all packaged together. So you should choose one or the other.
If you want to use Visual Studio Code for java development,
this guide can help you. Otherwise, Eclipse should already have everything ready to go, out of the box.
However, I will mention that Java probably isn't the best language for what you're trying to do. Java is a language that has a lot of great features, but it has a few caveats to be aware of:
- It's a pain to share your creations with other people. Other people will have to have Java installed on their computer in order to run your applications, and it will have to be the same version that you used to develop the application. A lot of people don't have Java installed on their PCs these days, as consumer applications are rarely created with Java anymore. And last I checked, it's actually a pain in the butt to install newer versions of Java, since the open source version is no longer maintained by Oracle, and it no longer comes with an installer (which requires users to manually mess with stuff that average users probably shouldn't mess with).
- GUIs created with Java are often ugly and clunky. Since it sounds like you want to create some GUI programs, I just figured that is worth mentioning.
- Java is not suited for game creation.
These days, I think that Java is probably mostly used by businesses, for their own internal applications and systems. So if you're trying to get a job as a professional developer, then it could be a good language to know. But of you're trying to make applications for consumers to use, or games, then there are better options.
Based on what you've said, if you're on Windows, you might benefit more from learning C#. It's pretty easy to make powerful GUI applications with it, the IDE is free these days, and there are tons of resources with which to learn it. Most Windows users also already have the necessary runtimes installed on their system these days, so they don't have to jump through any hoops in order to run your applications. But most importantly, C# is also the language that Unity uses, so it would be easier for you to transition into making games, after you've finished learning to make the other software that you want to make.