LoginSignup
1
1

More than 3 years have passed since last update.

VSCodeの設定

Last updated at Posted at 2020-08-13

VSCodeの設定

OpenCVとかいくつかのライブラリだけで補完?的なものが働かなかったので設定を変えて何とかした時のメモ

VSCodeのバージョン 1.47.3
Windows10

困っていたこと

cv2.と入力しても、.以降に何もでない。
候補が出たり、入力したら説明みたいな便利なのが出てほしい

やったこと

VSCodeの設定ファイルに追記
使っているPythonのライブラリ?が入っているところのパスを追記
もともとは空っぽだった

"python.autoComplete.extraPaths": [
    "~\\Lib\\site-packages"
]

Pylanceというのがいいよ!ってだれかから聞いて使っていたけど、そっちだとうまくいかない感じだったので

"python.languageServer": "Pylance"

"python.languageServer": "Microsoft"

に変更

そもそもPylanceに変えて何が変わったのか気づいていなかったのでとりあえずOkとする
(元がMicrosoftだったのかは分からないが。。。)

参考(ほぼそのまま)

1
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
1
1