B
B
Billy Milligan2014-03-31 16:54:19
Java
Billy Milligan, 2014-03-31 16:54:19

Are there any programs to bring the code to a normal form?

Need a program to format the code, from Krivorukov to the standard. Are there such programs? It is desirable that you can shovel the entire directory at once. I would like support for C, C ++ and Java languages.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis I., 2014-03-31
@dplsoft

As for the directory, I don't know, but a separate source in Eclipse can be easily remade by clicking "Ctrl+Alt+F" in any source code editing window.
And in the settings you can change the style under which you format.
For example, I am "pissed off" by "standard" Java formatting in the part in which it describes "parentheses".
It looks like this initially:

for (int i = 0, size = params.length; i < size; i++) {
    p += getType(params[i]) + " param" + i;
  }

I prefer the style when the brackets are one above the other (this is not correct, but it’s much faster for me to read the code if it is)
for (int i = 0, size = params.length; i < size; i++) 
        {
            p += getType(params[i]) + " param" + i;
        }

So: the eclipsin can be tuned to one or the other style of forced reformatting. And on the heels of pre-installed, or their own.

S
Sp0tted_0wl, 2014-03-31
@Sp0tted_0wl

Option for IDEA.
CTRL+ALT+L (Win)
OPTION+CMD+L (Mac)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question