You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can turn on the statusbar `Auto Format Vue` switch at the bottom of vscode, which allows you to automatically format the `vue` file when you write it.
16
+
You can turn on the statusbar `Auto Format Vue` switch at the bottom of vscode, which allows you to automatically format the vue file when you write it.
15
17
16
18
Or right-click to display the drop-down menu panel, click the `Format Document` menu item to format.
17
19
18
20
<!-- <img src="./public/2.gif" /> -->
21
+
19
22

20
23
21
24
# Snippets
@@ -204,47 +207,49 @@ All code snippets of Vue 2 Snippets are also included here.
204
207
205
208
<!-- </details> -->
206
209
207
-
208
210
# Extension Settings
209
211
210
-
- Use [js-beautify](https://github.com/beautify-web/js-beautify)'s config.
211
-
- Use [pug-beautify](https://github.com/vingorius/pug-beautify)'s config.
212
-
- Indent Size: default use the `editor.tabSize`.
212
+
Use [Prettier](https://github.com/prettier/prettier)'s config.
213
213
214
214
```json
215
-
{
216
-
"html_indent_root": false, // If need to indent the root tag of template in ".vue" file
217
-
"break_attr_limit": -1, // when attributes.length > the value,break attributes force; keep inline when -1.
218
-
"attr_end_with_gt": true, // when "break_attr_limit" works, if don't use "\n" before tag's ">",default "true"
219
-
"format_need": ["html", "js", "css"], // the list of need to format, default ["html", "js", "css"]. delete anyone if you don't need format.
@@ -255,7 +260,6 @@ If you enjoy front end, you should have it! xie, yao, yong, ting, jing, lin, tia
255
260
256
261
If you think it's useful, you can leave us a [message and like it](https://marketplace.visualstudio.com/items?itemName=Wscats.vue&ssr=false#review-details), Your support is our driving force😀
257
262
258
-
259
263
# Requirements
260
264
261
265
-[Prettier](https://github.com/prettier/prettier)
@@ -264,4 +268,4 @@ If you think it's useful, you can leave us a [message and like it](https://marke
264
268
265
269
# License
266
270
267
-
[Vue3 Snippets](https://marketplace.visualstudio.com/items?itemName=Wscats.vue) is released under the [MIT](http://opensource.org/licenses/MIT).
271
+
[Vue3 Snippets](https://marketplace.visualstudio.com/items?itemName=Wscats.vue) is released under the [MIT](http://opensource.org/licenses/MIT).
0 commit comments