How to reformat all files in a VS Code Project?

独自空忆成欢 提交于 2019-12-11 01:27:42

问题


I'm starting to work on an existing un-beautified project, and I have reformat-on-save in my IDE, so every 1-line edit turns into a whole reformatting of the file. Instead I'd like to reformat all the files in the project.

What's the easiest way to do that with VS Code?


回答1:


Try the vscode-formatall extension. It adds a Do Format command that reformats all files specified by the pattern in the formatall.search.include setting.



来源:https://stackoverflow.com/questions/47735943/how-to-reformat-all-files-in-a-vs-code-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!