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
Click the menu [Tools]-> [Settings] -> [Plugin Configuration]-> prettier -> prettier.config.js to open the configuration file.
12
12
13
13
14
-
## 如何配置格式化选项?
14
+
## Format options
15
15
16
-
格式化选项配置文件是prettier.config.js,里面对应的选项说明如下:
16
+
The formatting options configuration file is `prettier.config.js`, and the corresponding options are described as follows:
17
17
18
-
- printWidth: 控制单行最大长度
19
-
- semi: 控制每条语句是否加上分号
20
-
- tabWidth: 控制一个tab对应的空格数
21
-
- useTabs: 控制缩进用tab还是space
22
-
- singleQuote:控制字符串是用单引号还是双引号
23
-
- trailingComma: 是否去掉末尾的逗号
24
-
- bracketSpacing: 控制json对象括号前后是否加上空格
18
+
- printWidth: Specify the line length that the printer will wrap on.
19
+
- semi: Print semicolons at the ends of statements. options: true|false.
20
+
- tabWidth: Specify the number of spaces per indentation-level.
21
+
- useTabs: Indent lines with tabs instead of spaces.
22
+
- singleQuote:Use single quotes instead of double quotes.
23
+
- trailingComma: Print trailing commas wherever possible in multi-line comma-separated syntactic structures. (A single-line array, for example, never gets trailing commas.)
24
+
- bracketSpacing: Print spaces between brackets in object literals. options: true|false.
0 commit comments