How to format vue without automatic line wrapping in vscode

Line wrapping is often used in current formatting
eg:

return wepy.chooseImage({
    count: 1,
    sizeType: "original"
}).then(res => res.tempFilePaths[0]);

will be formatted as

return wepy
    .chooseImage({
        count: 1,
        sizeType: "original"
    })
    .then(res => res.tempFilePaths[0]);

how can I turn off automatic line wrapping?


the configuration upstairs has failed.
check out the automatic formatting of my js

  this.xjLink =
    h5 +
    '/aaa/bbb/home?token=' +
    token +
    '';

I am embarrassed to have cancer. I really can't stand it. This development is not crazy. The real reason for
is that prettier. is used for JS by default
user config adds the following solution
{

"vetur.format.defaultFormatter.js": "vscode-typescript",

}


/ / A pair of attributes wrap.
/ /-auto: wraps the property only when the line length is exceeded.
/ /-force: wraps each property except the first one.
/ /-force-aligned: wraps each property except the first one and maintains alignment.
/ /-force-expand-multiline: wraps each attribute.
/ /-aligned-multiple: aligns attributes vertically when the length of a line break is exceeded.


"beautify.config": { "brace_style": "none,preserve-inline", "indent_size": 2 }

this will not change the line, but it feels that the format is not complete, does anyone have any ideas

Menu