Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How phpstorm saves and formats code at the same time

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how phpstorm saves and formats code. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

1. Select Edit (Edit)-> Macros (Macro)-> Start Macro Recording (start recording macros), as shown below:

2. Directly press the shortcut key you want to record, Ctrl+ALT+L,Ctrl+S, and then click the little red dot in the image below.

3. Then enter Format And Save (the name can be entered at will, as long as you can remember it)

4. In File- > Settings (Settings)-> Keymap- > Macros, find the "Format And Save" you just added, right-click "add keyboard shortcut", enter the shortcut key "Ctrl+S", and click "OK". This completes the code saving (Ctrl+S) automatic formatting. Let's go and have a try.

Note: if it is a Chinese phpstorm, some will not be able to enter "Settings", please find the language resource pack (installation directory, under lib), temporarily restore to English package, restart phpstorm, enter the settings, and then restore to Chinese after successful modification.

Thank you for reading! On how to save phpstorm while formatting code is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report