java-decompiler / jd-gui

A standalone Java Decompiler GUI
GNU General Public License v3.0
13.97k stars 2.38k forks source link

improvement proposal: Real Line Numbers #410

Open WIPService opened 1 year ago

WIPService commented 1 year ago

jd-cli offers an option:

--displayLineNumbers, -n
       displays line numbers in decompiled classes
       Default: false

but instead of

Line: 32 /*   46 */   public class ...
Line: 33 /*   48 */     doSomething

Would it be possible to export code so it will be written on its real line number? This would be easier to compare.

Line: 46 public class ...
Line: 47
Line: 48    doSomething