Currently, you can't open .class files in vscode. To be clear I don't mean the "Go To Definition" action I mean plain .class files. If you try and open one then it'll give you a warning. I've found two extensions that sound like they solved the problem but don't:
- Java Decompiler on "Go To Definition" decompiles the file if it's not already.
- Java CFR Decompiler decompiles the file into a new .java file but doesn't open it in a read-only editor which means I can edit it and every time I want to close it I get a popup saying "Do you want to save changes?".
The conclusion is that there is no convenient way of opening a decompiled .class file in vscode.
Currently, you can't open .class files in vscode. To be clear I don't mean the "Go To Definition" action I mean plain .class files. If you try and open one then it'll give you a warning. I've found two extensions that sound like they solved the problem but don't:
The conclusion is that there is no convenient way of opening a decompiled .class file in vscode.