webstorm/phpstorm 解決 html 中的 js 代碼 format 後空格問題

clipboard.png

代碼風格項設置,選擇 HTML ,在 Other 這一欄的 Do not indent children of: 這一項設置中添加 script 標籤便可。spa

若是要設置分號、逗號相關問題,在代碼風格選擇 JavaScript code

clipboard.png

相關文章
相關標籤/搜索