3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VSCodeのPython ExtensionでSort importsが動かなくなったときの対処法(2020/09ぐらい)

Posted at

Sort imports 終わらない…。

image.png

But great workaround using the locally installed isort via python.sortImports.path! It actually works without any issues along with the isort arguments and everything.

なんかよくわからんが isort を virtualenv に入れて python.sortImports.path を設定すると良いらしい。

poetry add -D isort

dev-dependencies にしたあとに .vscode/settings.json"python.sortImports.path": "${workspaceFolder}/.venv/bin/isort" を設定。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?