javascript - 防止 vs 代码将 Express JS 代码格式化为换行符
问题描述
Vs code 在格式上做了这个
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,"
解决方案
推荐阅读
- plot - Gnuplot:如何使用某些生命来 2D 绘制 3D 数据文件
- c# - C# 禁止向上转型
- android - 在android中运行命令
- c++ - 在 C++ 中写入管道时出错
- javascript - 使用函数从另一个类渲染组件
- android - Android:使用房间创建的 SQLite 数据库在使用 sqlte-browser 打开时不显示表
- azure-cosmosdb - 问题将 0.0 保存到 cosmosdb double 到 int
- wordpress - Wordpress中的帖子有任何简单的rest api简单端点吗?
- reporting - 在 RTF 模板的分页符上显示不同的页面(BI 发布者)
- scala - 如何在 sbt-plugin 中使用 sbt-assembly?