如何配置WebStorm以不将注释包装到下一行

时间:2016-09-23 07:28:05

标签: phpstorm webstorm jetbrains-ide

我的代码中有以下内容:

"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配置为不包装注释或将它们放在相应的代码之前,而不是之后?

0 个答案:

没有答案