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
|`tabwidth`| Specify the number of spaces per indentation-level. |`2`|`<number>`|
38
+
|`usetabs`| Indent lines with tabs instead of spaces. |`false`|`true`, `false`|
39
+
|`semi`| Print semicolons at the ends of statements. |`true`|`true`, `false`|
40
+
|`singlequote`| Use single quotes instead of double quotes. |`false`|`true`, `false`|
41
+
|`quoteProps`| Change when properties in objects are quoted. |`as-needed`|`as-needed`, `consistent`, `preserve`|
42
+
|`jsxsinglequote`| Use single quotes instead of double quotes in JSX. |`false`|`true`, `false`|
43
+
|`trailingcomma`| Print trailing commas wherever possible in multi-line comma-separated syntactic structures. |`es5`|`none`, `es5`, `always`|
44
+
|`bracketspacing`| Print spaces between brackets in object literals. |`true`|`true`, `false`|
45
+
|`bracketsameline`| Put the > of a multi-line HTML element at the end of the last line instead of being alone on the next line. |`false`|`true`, `false`|
46
+
|`arrowparens`| Include parentheses around a sole arrow function parameter. |`always`|`always` , `avoid`|
47
+
|`wrap`| Hard wrap lines at the column specified by the `cols` setting. |`preserve`|`always`, `never`, `preserve`|
48
+
|`cols`| Specify the line length that the printer will wrap on. |`80`|`<number>`|
49
+
|`eol`| The line feed character to use in all files. |`lf`|`lf`, `crlf`, `cr`, `auto`|
50
+
|`formatembeddedcode`| Whether or not to format quoted code embedded in the file. |`auto`|`auto`, `off`|
51
+
|`indentvuecode`| Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files. |`false`|`true`, `false`|
52
+
|`htmlwhitespacesensitivity`| Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars. |`css`|`css`, `strict`, `ignore`|
53
+
|`requirepragma`| Whether to only format files that contain a special comment, called a pragma, at the top of the file. |`false`|`true`, `false`|
54
+
|`insertpragma`| Whether to insert a special @format marker at the top of files specifying that the file has been formatted with Prettier. |`false`|`true`, `false`|
31
55
32
56
You can also format the document without saving it by running the following
33
57
command (Press `Ctrl+E`, then run the following):
@@ -40,7 +64,7 @@ You can switch off the format-on-save feature by running the following command
0 commit comments