类似这样的对象数组:
const objArr = [
{name:"a", value:1},
{name:"aaaa", value:2},
{name:"aaaaaaa", value:3},
{name:"aaa", value:4},
];
变成这个样子:
const objArr = [
{name:"a", value:1},
{name:"aaaa", value:2},
{name:"aaaaaaa", value:3},
{name:"aaa", value:4},
];
设置了 PhpStorm 里面的 Editor -> Code Style -> JavaScript
Wrapping and Braces 标签下,把 Objects 的 Align 改为 “ on value ”
可是不起反应?代码并没有被改动。尝试设置完后重启了也是不行