[英]How to configure tsline in settings.json?
I am using visual studio code我正在使用视觉工作室代码
When i search for settings.json file it looks like this当我搜索 settings.json 文件时,它看起来像这样
{
"liveServer.settings.donotVerifyTags": true,
"liveServer.settings.donotShowInfoMsg": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {},
"diffEditor.ignoreTrimWhitespace": false,
"settingsSync.ignoredSettings": [
]
}
how can i configure my vs code so every time when i format my document It will use my tsline rules我如何配置我的 vs 代码,所以每次我格式化我的文档时它都会使用我的 tsline 规则
for prettier i already found answer for that reference here https://stackoverflow.com/questions/49640469/how-do-you-determine-which-formatter-is-being-used-for-vs-code
为了更漂亮,我已经在这里找到了该参考的答案
https://stackoverflow.com/questions/49640469/how-do-you-determine-which-formatter-is-being-used-for-vs-code
but what should be the value for tsline on editor.defaultFormatter
so it will use tslint?但是 editor.defaultFormatter 上
editor.defaultFormatter
的值应该是多少,所以它会使用 tslint?
Firstly I'd like to mention that TSLint has been deprecated and all the functionality added/replaced in ESLint and I recommend you use that.首先,我想提一下 TSLint 已被弃用,并且在 ESLint 中添加/替换了所有功能,我建议您使用它。 Here's an article how to migrate for TSLint to ESLint ( https://github.com/typescript-eslint/typescript-eslint#typescript-eslint )
这是一篇如何将 TSLint 迁移到 ESLint 的文章( https://github.com/typescript-eslint/typescript-eslint#typescript-eslint )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.