DEV Community

Discussion on: IntelliJ doesn't open .class files, unlike VSCode???

Collapse
 
dhruvgarg79 profile image
Dhruv garg • Edited

As someone who uses both daily. There is no comparison that for java Intellij Idea is hands down better than VS code.

From the problem you are describing I think project JDK is not selected. check that. otherwise class definition error wouldn't have occurred.

Collapse
 
baenencalin profile image
Calin Baenen

Wdym the project SDK was not selected??

Collapse
 
dhruvgarg79 profile image
Dhruv garg • Edited

from project structure settings check if any JDK is selected.

Just google it, "how to select project sdk in intellj idea"

for me intellj shows decompiled code formatted beautifully(when viewing any library code). reader mode of intellj idea 2020.3 is just awesome.

Thread Thread
 
baenencalin profile image
Calin Baenen

I know VSCode is juat an over the top text editor, but I never had to dp this.

Why xan't IntelliJ just do all this for me? It seems to overcomplicate a process that (to me,) VSCode did easier, automatically.

Also, "project"??? I don't understand. Like a package, or some shit?
Because all I'm doing is making my game on a per-file basis, and grouping my code in to packages that all get used by Main.java.

Thread Thread
 
dhruvgarg79 profile image
Dhruv garg • Edited

frustration is understandable but intellj is also used for complex projects and for those it does a best job in my view (you certainly won't like other java IDEs 😂), though there is lite mode which you can start from terminal. Lite mode does not work for me as I have installed idea using snap.

I would suggest to just google these problems and watch any Intellij tutorial on YT, also intellij has plugin which helps beginners to learn IDE features. In long run it will help you.

Otherwise, VS code is not bad you can still do most of the work by using plugins.