写 react 用vscode 格式化, 在import 的时候发生了令人难以接受的现象(本人强迫症晚期。。。)
我想要的情况:
import { Row, Col } from 'antd';
格式化之后的情况:
import {
Row,
Col
} from 'antd';
根据配置文档,改成
"beautify.config": {
"brace_style":"collapse,preserve-inline"
}
so cool!
写 react 用vscode 格式化, 在import 的时候发生了令人难以接受的现象(本人强迫症晚期。。。)
我想要的情况:
import { Row, Col } from 'antd';
格式化之后的情况:
import {
Row,
Col
} from 'antd';
根据配置文档,改成
"beautify.config": {
"brace_style":"collapse,preserve-inline"
}
so cool!