In Visual Studio, Ctrl + K + D means automatically aligning (if I may say so) the indents in the code.

For example, it was:

class Logger { private void a(){ int x = 10;} } 

After Ctrl + K + D:

 class Logger { private void a() { int x = 10; } } 

Those. we get "beautiful formatting". Is there an equivalent in IDEA?

    1 answer 1

    Ctrl + Alt + L , indent settings are taken from these settings.