How to paste code without reformating in IDEA
Intellij IdeaIntellij Idea Problem Overview
I want to prevent Intellij IDEA from reformating my code when I paste it.
How can I do this?
P.S. It is needed because I can't customize code formatting for Erlang (ErlGray plugin)
Intellij Idea Solutions
Solution 1 - Intellij Idea
In the case anyone else comes across this and doesn't want to change their project-wide settings, I just recently found a "Paste Simple" command (Ctrl+Alt+Shift+V). I'm not sure what version it was added, but it's there as of IntelliJ 13.
Solution 2 - Intellij Idea
Set Settings
(Preferences
on Mac) | Editor
| Smart Keys
| Reformat on Paste
to None: