![](/img/trans.png)
[英]How to invoke the “Organize imports” TypeScript feature in Visual Studio?
[英]programatically invoke "Organize Imports" on VSCode / Typescript project
我已經想通了。 你可以用 TSLint 本身來做! 只需將以下規則添加到您的 tslint.json 中:
"ordered-imports": {
"severity": "default"
},
現在tslint --fix
將自動組織導入!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.