样式表代码格式化问题 #31
-
老师在保存less样式文件后,代码前后顺序自动调整了。请问这是用了什么插件?我在写样式时,顺序不标准,编辑器会有红色波浪线的提示。虽然不影响什么,不过希望有一个可以自动调整的插件。 |
Beta Was this translation helpful? Give feedback.
Answered by
aspirantzhang
Apr 8, 2021
Replies: 1 comment
-
格式化代码插件是Prettier
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aspirantzhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
格式化代码插件是Prettier
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
在学习手册第一课中有写过,另外注意安装完以后可能要做点配置。学习手册中也有,比如以下几个选项可能相关: