如果您运行 a,post*Command
您将获得一个运行命令并输出的集成终端:
从 devcontainer.json 运行 PostCreateCommand...
[2709 毫秒] 开始:在容器中运行:...
完毕。按任意键关闭终端。
有没有办法让这个自动关闭并打开用户终端,或者只是保留它并打开用户终端,就好像您根本没有运行任何命令一样devcontainer.json
?
我想关闭更漂亮的规则,在其中换行内联注释。我的ESLint规则no-inline-comments
已设置为关闭或警告,因此可以正常使用。事实证明,Prettier仍然想换行和内联评论:
我在VSCode中有一个设置,其中ESLint正在处理JS的漂亮语言,而Prettier扩展名正在处理所有其他语言。我也用了airbnb-base
。这是我相关的配置:
.eslintrc.json
:
{
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"rules": {
"no-console": 0,
"no-plusplus": 0,
"no-inline-comments": "off",
"no-undef": "warn",
"no-use-before-define": "warn",
"no-restricted-syntax": [
"warn",
{
"selector": "ForOfStatement",
"message": "frowned upon using For...Of"
}
]
// "line-comment-position": ["warn", { "position": "above" }]
},
"env": {
"browser": true,
"webextensions": true
}
}
Run Code Online (Sandbox Code Playgroud)
VSCode settings.json
:
// all auto-save configs
"editor.formatOnSave": true,
// turn off for native beautifyjs
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": ["js"],
"prettier.trailingComma": …
Run Code Online (Sandbox Code Playgroud) eslint visual-studio-code eslint-config-airbnb prettier eslintrc