手记

phpstorm如何实现ctrl+s 自动格式化代码

点击Start Macro Recording后,先按CTRL+ALT+L 然后按CTRL+S,输入“Format and Save”然后关闭Macro

找到快捷键“Format and Save”,添加Keyboard Shortcut的快捷键是Ctrl+S即可

详细见https://stackoverflow.com/questions/12496669/code-reformatting-on-save-in-phpstorm

3人推荐
随时随地看视频
慕课网APP