How to auto format code in WebStorm?

前端 未结 5 521
执笔经年
执笔经年 2021-01-30 00:43

I\'m looking for a way to auto-format my code in the WebStorm IDE?

5条回答
  •  误落风尘
    2021-01-30 01:22

    1. Press CTRL+ALT+S to open Settings.
    2. Select Plugins > Marketplace.
    3. Enter Save Actions into search field.
    4. Click Install to install plugin. Reload IDE.
    5. Open Settings again.
    6. Select Save Actions (it appears at the bottom of the settings list).
    7. Check Reformat file > Press OK button.

    Visit Plugin Homepage

提交回复
热议问题