12
8

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 5 years have passed since last update.

VSCodeでPythonの自作モジュールにも補完を効かせる方法

Posted at

方法

(Macの場合、)「⌘+,」で設定を開き、下図のように「autocomplete ex」などと検索して、「Python > AutoComplete: Extra Paths」でsettings.jsonを開きます。

スクリーンショット 2019-05-19 9.46.23.png

そして、下記のように追加したいモジュールのパスを書いておくことで、自作モジュールにもAutoCompleteの補完を効かせることができます。

settings.json
{
    "python.autoComplete.extraPaths": [
        "~/path/to/your/module1",
        "~/path/to/your/module2"
    ]
}

参考

12
8
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
12
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?