python - 如何找到 vscode 正在使用的 isort
问题描述
https://code.visualstudio.com/docs/python/editing#_sort-imports
我已经设定
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
在 vscode 中,它看起来选择了正确的 python 解释器,但它没有按预期生成排序导入。我怀疑 vscode 使用了错误的 isort,我怎样才能找出 vscode 到底使用了哪个 isort?
解决方案
VS Code 附带了它自己使用的 isort 副本,目前是 isort 4.3.21。您可以在 Python 通道的输出面板中查看扩展是如何执行 isort 的。
推荐阅读
- javascript - 用户单击按钮时创建文本区域
- azure-api-management - Azure Liquid 模板参数比较
- c# - 如果员工在 MVC 中有多个提交,则添加小时数
- javascript - 如何遍历 JS 中的数组?
- mysql - 如何从 PHP 中的单个表中加入具有多个条件的 Mysql 中的多个查询?
- c# - 错误 CS0246:找不到类型或命名空间名称“KustoConnectionStringBuilder”
- angular - 无法从 Angular 中的 GET 请求中获取数据
- google-app-maker - 如何在应用程序制造商中克隆记录并创建新记录?
- python - 使用循环连接来自单独链接的单独文件中的子集文件
- r - 如何清理 R 或 Excel 中的地址数据?