Javascript 防止vs代码将Express JS代码格式化为换行符
Vs代码在格式上执行此操作Javascript 防止vs代码将Express JS代码格式化为换行符,javascript,format,vscode-settings,Javascript,Format,Vscode Settings,Vs代码在格式上执行此操作 app.get( "/user/:id", function(req, res, next) { if (req.params.id === "0") next("route"); else next(); }, function(req, res, next) { res.send("regular"); } ); 我需要这个 app.get("/user/:id",function(req, res, next) { if (req.pa
app.get(
"/user/:id",
function(req, res, next) {
if (req.params.id === "0") next("route");
else next();
},
function(req, res, next) {
res.send("regular");
}
);
我需要这个
app.get("/user/:id",function(req, res, next) {
if (req.params.id === "0") next("route");
else next();
},
function(req, res, next) {
res.send("regular");
}
);
我尝试过这个可能的答案,但没有帮助
“eslint.format.enable”:false
“javascript.suggest.includeAutomaticOptionalChainCompletions”:false,”
禁用linting扩展或更新规则。希望参数1和2的开头在同一行上,但参数3的开头在另一行上,这是非常不寻常的。