括号前缩进 Intellij Idea

用户7474176

让我们假设我在 Intellij Idea 中格式化后有这样的代码:

for (j = 0; j < 2; j++)
{
  i = a;
}

while (x < 0)
{
  number = number + 1;
}

function f (a)
{
  return a;
}

如何更改设置以使代码在格式化后是这样的:

for(j = 0; j < 2; j++)
{
  i = a;
}

while(x < 0)
{
  number = number + 1;
}

function f(a)
{
  return a;
}

?

疯狂编码器

您可以在 JavaScript 代码样式设置 Spaces 中进行配置:

样式代码

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章