eclipse - Shortcut command/way to fix Java Sonar error -


According to standard coding practice, "left curling brasings should be located at the end of the lines of the code" For example,

  / * is not good coding practice / / and {} / * good coding practice * /} else {}  

Actually I ran sonar my java project Due to the above rule, I found more than 6000 errors. Is there a shortcut to eclipse or to some other way to fix these errors?

Open Java files (where errors occurred) and "Ctrl + Shift + F" key for format Use the. Then the code will be formatted according to the "Formatter" settings


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -