Eclipse - code autoformatting

It might be nitpicky, but I like that all my code is in the form

function() { code } 

instead

 function() { code } 

When Eclipse automatically generates a class for me, it will use the latter format, and so I need to go through and change all the generated methods. Is there anyway to do this so that it automatically places it in the first format? I use java if that matters.

+4
source share
2 answers

Click edit in the next panel to control formatting:

enter image description here

+9
source

Yeah. Look in Settings -> Java -> Cody Style -> Formatter. You can change the BUNCH styles there.

I think what you are looking for is on the Bracelets tab

+4
source

Source: https://habr.com/ru/post/1403127/


All Articles