Using Javaparser to format as priority, if fail, using default formater.
JavaParserFormater will re-sort line/CodeBlock base on line No.
2024.08.15 Update
Remove fernflower/cfr
Using org.jboss.windup.decompiler.procyon.LineNumberPrintWriter
and org.jboss.windup.decompiler.procyon.LineNumberFormatter
to format source code for better debug.
Build up the project, will support decomoile class file directly, and jar file.
2021.07.18 Update
Update procyon to support JDK11.
When showDebugLineNumbers of procyon is true, align debug line to original line.
To see the decompiler in action, right-click on a Java symbol for which you don't have the source code, and choose Go to Definition (or simply command/ctrl+click on the symbol). You will see the decompiled code.
You can use the following settings to customize the decompiler:
java.contentProvider.preferred (settings.json only): the ID of a decompiler to use. Currently, only procyon are supported..
java.decompiler.procyon : additional configuration to provide to the decompiler. The format depends on the chosen decompiler. Use the autocomplete functionality of Visual Studio Code's settings to view the possible options and their descriptions.