Steffen S
Steffen S

Reputation: 17

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. E.g. change the order of imports.

How can I disable this behavior?

Upvotes: 0

Views: 620

Answers (2)

Egor Klepikov
Egor Klepikov

Reputation: 5879

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

Upvotes: 1

Jens
Jens

Reputation: 69470

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

Upvotes: 0

Related Questions