vscode的格式化代碼快捷鍵是什么 ? ?
Visual Studio Code可以通過以下快捷鍵格式化代碼:
● On Windows????Shift?+?Alt?+?F
● On Mac????? Shift?+?Option?+?F
● On Ubuntu????? ?Ctrl?+?Shift?+?I
實(shí)現(xiàn)保存時(shí)自動(dòng)代碼格式化:
1)文件-【首選項(xiàng)】-【設(shè)置】;
2)搜索emmet.include;
3)在settings.json下的【工作區(qū)設(shè)置】中添加以下語(yǔ)句:
"editor.formatOnType":?true, "editor.formatOnSave":?true
4)隨便寫代碼進(jìn)行測(cè)試即可。
相關(guān)推薦:《vscode使用教程》
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦