How to insert code without changing IDEA

I want Intellij IDEA not to reformat my code when I insert it. How can i do this?

PS This is necessary because I cannot configure code formatting for Erlang (ErlGray plugin)

+56
intellij-idea
Jul 06 2018-12-12T00:
source share
3 answers

Install Settings ( Preferences on Mac) | Editor | Smart Keys | Reformat on Paste to None :

reformat on paste

+56
Jul 06 2018-12-12T00:
source share

In case someone else encounters this and does not want to change their settings for the whole project, I recently found the command "Insert Simple" (Ctrl + Alt + Shift + V). I am not sure which version was added, but it is there, like IntelliJ 13.

+53
Nov 17 '14 at 15:53
source share

I found that changing Reformat on Paste to None did not help me. I also had to disable Smart Indented Nested Lines

enter image description here

+7
Apr 29 '16 at 10:59
source share



All Articles