简体   繁体   中英

How to reformat all the files in the project in IntelliJ IDEA?

Reformat code is a very useful feature, but I have a big project where I need to reformat all the files (about 100). How to do this without opening every file and reformatting?

Right click on the root folder of the project, select "Reformat Code..." and click Run. You may also hit Ctrl+Alt+L.

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