Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can I see rule used for reformat in IDEA IDE?

Sometimes when reformatting code via CTRL + ALT + S I struggle with finding rule which is the reason for changing my code. Is there any detailed view in any IDEA IDE for this?

Specific example:

Before Reformat:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

myMethod(){}

After Reformat:

myMethod(){
}

And I kind of have to search through all styling settings.

>Solution :

You can try to do the following:

  • Select a code fragment

  • Press Alt+Enter and click Adjust code style settings

See https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#reformat_code for more information

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading