Home > Article > Development Tools > Illustration of phpstorm saving and automatic formatting method
The following column phpstorm tutorial will introduce to you how to phpstorm save and automatically format. I hope it will help you if you need Friends help!
1. Modify the default shortcut keys:
Open Preferences..., search for "KEYMAP" and open it ;
Search for "Save All" and double-click "Save All";
Change the shortcut key to "CMD CTRL S".
## 2. Record macros: Select Edit->Macros->Start Macro Recording. Shortcut key type cmd alt l (formatting code) and then type CMD CTRL S; exit recording macro. Save as Format And Save.## 3. Add shortcut keys to macros:
In File->Settings->Keymap->Macros, find the one you just added "Format And Save", right-click "add keyboard shortcut", enter the shortcut key "Ctrl S", and click "OK".
The above is the detailed content of Illustration of phpstorm saving and automatic formatting method. For more information, please follow other related articles on the PHP Chinese website!