In Eclipse goto
Window->Open perspective->Jave
Window->Reset perspective
Java Editor not opening my java code
题
When I double-click one of the .java files from the Project Explorer, it does not open in the Java Editor
. I even tried to open it with Open With -> Java Editor
to no avail. I even made sure in Windows -> Preferences -> General -> Editors
and made the extension .java default to the Java Editor
.
I just got this app virtually finished and I feel like I didn't change anything and now I cannot get a .java file to open. If you look at the screenshot, you can see at the red box that the files seem to be open and at a certain line number and such. Any suggestions how to get these files open and viewable?
解决方案
其他提示
In IntelliJ, go to
Settings -> File types -> Files opened in associated applications
Settings -> File types -> Java source files
in any of them, if a exception is shown in the lower panel with the name of the file you can't open, just remove it and apply changes