Intellij idea 括号前缩进

Intellij idea 括号前缩进,intellij-idea,format,Intellij Idea,Format,假设我在Intellij Idea中格式化后有这样的代码: for (j = 0; j < 2; j++) { i = a; } while (x < 0) { number = number + 1; } function f (a) { return a; } (j=0;j

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

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

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

function f (a)
{
  return a;
}
(j=0;j<2;j++)的

{
i=a;
}
而(x<0)
{
数字=数字+1;
}
函数f(a)
{
返回a;
}
如何更改设置,以便在格式化后代码是这样的:

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

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

function f(a)
{
  return a;
}
(j=0;j<2;j++)的

{
i=a;
}
而(x<0)
{
数字=数字+1;
}
函数f(a)
{
返回a;
}

您可以在JavaScript代码样式设置中配置它,空格: