简体   繁体   中英

Can I see rule used for reformat in IDEA IDE?

Sometimes when reformatting code via CTRL + ALT + SI 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:

myMethod(){}

After Reformat:

myMethod(){
}

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM