Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义配置以及右键配置 #7

Closed
cMing1997 opened this issue Aug 5, 2022 · 3 comments
Closed

自定义配置以及右键配置 #7

cMing1997 opened this issue Aug 5, 2022 · 3 comments

Comments

@cMing1997
Copy link

感觉这个可以帮助新项目省很多力气
作者有想过将这个弄到老项目的场景嘛?比如支持自定义是保存时格式化,还是右键点击格式化
或者提示报错的信息,是否支持自定义与默认合并组成最终的验证格式化规则

@lyh0371
Copy link
Owner

lyh0371 commented Aug 5, 2022

@CasualMing 老项目的话我也给出了解决方案 点击查看;至于你说的点击右键格式和... 我觉得应该开发一个vscode插件来实现了,并不是web-norm的能力范畴

@cMing1997
Copy link
Author

@CasualMing 老项目的话我也给出了解决方案 点击查看;至于你说的点击右键格式和... 我觉得应该开发一个vscode插件来实现了,并不是web-norm的能力范畴

这个其实我想说的是,有的时候在老项目进行维护的时候,虽然想做一些 规范操作,但是也是得循序渐进嘛,像你那配置的保存就格式化,支持可配置会更好一些的

@lyh0371
Copy link
Owner

lyh0371 commented Aug 5, 2022

@CasualMing 哦 那这个功能是有的,需要修改生成的 .vacode settings.json 中的 editor.formatOnSave=false ,这样就不会自动保存了, 右键格式化vscode自带的有,如果项目中配置的有pretter 他就会按照配置文件自动格式化。

@lyh0371 lyh0371 closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants