我的代码中有以下内容:
"no-sequences": ["error"], // Disallow Use of the Comma Operator
"no-throw-literal": ["error"], // Restrict what can be thrown as an exception
在使用Ctrl+Alt+L
重新格式化代码后,我得到以下内容:
"no-sequences": [
"error"
],
// Disallow Use of the Comma Operator
"no-throw-literal": [
"error"
],
// Restrict what can be thrown as an exception
如您所见,评论包含在下一行。
有没有办法将WebStorm配置为不包装注释或将它们放在相应的代码之前,而不是之后?