Home >Development Tools >phpstorm >Illustration of phpstorm saving and automatic formatting method

Illustration of phpstorm saving and automatic formatting method

藏色散人
藏色散人forward
2021-01-04 14:31:496134browse

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!

Illustration of phpstorm saving and automatic formatting method

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete