phpstormphpstorm-2017.1

PhpStorm - copy & paste removes indentation


If I copy paste indented text e.g.:

foo
    bar
        123

to PhpStorm, then the formatting and indentation gets lost.

enter image description here

My PhpStorm is fresh installed


Solution

  • Try changing the option File | Settings | Editor | General | Smart Keys | Reformat on paste to None