How to remove trailing spaces in multiple files?
Hello!
I can perform some actions in multiple files at once. E.g. if I wanto to Optimize Imports in multiple files, I just select them or the even simply the folder and select the according menu item in the right-click drop-down menu (or use the hotkeys combination). Is it possible / How to do so for removing trailing spaces in multiple files?
Thx
Please sign in to leave a comment.
You can shift/ctrl + click on multiple files/folder in a project view to select them. Then go Code > Inspect Code > Selected Files. Find "Unused Import" and use Bulk quick fix.
See this illustrated: https://i.gyazo.com/cc12619c15e32cf3e791103dad60ac16.mp4
> How to do so for removing trailing spaces in multiple files?
There's unfortunately no inspection for this. By default PhpStorm strips trailing spaces only in files that were opened by PhpStorm. This can be configured at File | Settings | Editor | General > Other section at the bottom.