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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -