When using PhpStorm on Ubuntu - I think I didn't have this problem under OS X - and copy some text, than PhpStorm somehow adds whitespaces to the line. I can see this, because I've got phpcs
installed which tells me that x
whitespaces are found at the end of line. I already set in the settings that PhpStorm should remove unnecessary whitespaces when saving, but I don't know why it generates it to begin with.
The same goes, when I'm extending a class with auto completion for example:
class Foo extends Bar{whitespace}
PhpStorm would now add an unneeded whitespace after the Bar
and I have to remove it manually all the time. Same goes for importing classes (also when extending), PhpStorm always puts them directly under the namespace
but I want it to have one line inbetween, because of PSR-2
. Any ideas?