
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Allow statements before imports with Visual Studio Code and autopep8
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Allow statements before imports with Visual Studio Code and autopep8
I'm using Visual Studio Code with the Python plugin and autopep8 with: "editor.formatOnSave": tru... I'm using Visual Studio Code with the Python plugin and autopep8 with: "editor.formatOnSave": true I have local packages I need to import, so I have something like: import sys sys.path.insert(0, '/path/to/packages') import localpackage but when I save, Visual Studio Code/autopep8 moves all import statements before the code, so Python can't find my local package. import sys import localpackage sys.