How I Lost Auto Formatting In WebStorm!
…And How I Got It Back Again
I switched from VSCode to WebStorm and I couldn’t, for the life of me, get prettier to auto-format. After months of using a keyboard shortcut, one of my colleagues was able to find the issue and we got it fixed.
TL;DR
Are you using WebStorm with the VSCode Keymap and auto format on save doesn’t work?
Auto format only works with “Save All” actions and the VSCode Keymap remaps that to ctrl + k, s
. Remapping cmd + s
to the Save All
action in WebStorm will allow your documents to auto format on save again.
see: https://youtrack.jetbrains.com/issue/WEB-51914#focus=Comments-27-5103686.0-0
History
I’m a VSCode guy. I have been for several years now and it’s been awesome! In the real world I work on a medium-sized Typescript project. About a year ago, VSCode started to struggle mightily.
Our app was (and still is) growing and my editor was slowing down my productivity. Autocomplete was taking forever, auto-imports were frequently incorrect, and it was starting to become a bad experience.
So, much to the joy of one Robert S (codeBelt), I finally switched to WebStorm. This wasn’t my first foray into WebStorm, so I wasn’t…