webStorm格式化js代码时单引号变成了双引号,问题如下:
格式化前:
格式化后:
解决办法:
window: File -> Settings -> Editor -> Code Style -> Javascript;
mac: webStorm -> Preference -> Editor -> Code Style -> Javascript
在Production 标签页里:
1,选择Don’t use semicolon to terminate statement in new code;
2,选择Use single quotes in new code;
3,然后apply -> ok;
10-29
1万+