Visual Studio Code

Code

【VSCode】でPythonのfrom文やimport文の順番が勝手に入れ替わらないようにする(”editor.formatOnPaste”を使用)

VSCodeでPythonを編集しているときに、from文やimport文の順番が勝手に入れ替わってしまったので、その事象が起きないように設定する方法を紹介します。Pythonだけに適用する方法を取っています。