先查看 .editorconfig 或 .prettierrc.js 有没有设置 max-line-length 或 printWidth
.prettierrc.js
module.exports = {
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
printWidth: 320
};
再看看有没有安装其他插件如 TypeScript Import Sorter
import-sorter.json
{
"importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 320
}