How to prohibit line breaks when introducing modules into JS code in vue projects

// 
import {
  debounce
} from "throttle-debounce";
The

editor is vscode with vetur and prettier installed. It is useless for me to disable these two plug-ins separately. When the project does not start the development environment, this code can be formatted as

.
// 
import { debounce } from "throttle-debounce";

but after the project starts, it is formatted into one using the formatted name that comes with vscode.

how to make the introduction of this form in both js files and vue files be formatted according to the format binomial.


add:

to setting.json
  

is it possible that you have customized other formats in vscode, such as the newline format of {} ?

Menu