Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for Java code beautifier (or maybe not beautify, but something to make code more elegant) [closed]

I don't know how to describe it, but I'm looking for a tool that makes suggestions to my code on how to be... more elegant.

For example to make a nested if() statement a switch statement. something like this. As I don't know how to describe my problem I don't know what to search for. I thing code beautifier do not specifically change statements, right?

like image 858
tzippy Avatar asked Aug 25 '10 07:08

tzippy


2 Answers

Have a look at IntelliJ IDEA "Intentions":

  • http://blogs.jetbrains.com/idea/tag/intentions/
  • http://www.jetbrains.com/idea/documentation/intentions.jsp
like image 194
cherouvim Avatar answered Oct 23 '22 08:10

cherouvim


You might want to have a look into Netbeans. It provides code hints, which point out common practices and mistakes.

like image 27
MicSim Avatar answered Oct 23 '22 09:10

MicSim