简体   繁体   中英

Is it possible to disable the auto format by copy&past in IntelliJ?

When I copy&past my source files IntelliJ autoformat the file content. Eg change the order of imports.

How can I disable this behavior?

You can change this behaviour under Settings/Preferences (on macOS) | Editor | General | Smart Keys | Reformat on paste Settings/Preferences (on macOS) | Editor | General | Smart Keys | Reformat on paste

In "Setting" --> "Editor" --> "CodeStyle"-->"Java" you find a tab imports. There you can change this behavior

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