prog:vsc:python
Ceci est une ancienne révision du document !
Installation
La base
Installer le module Python.
Tutorial Visual Studio Code Archive du 04/11/2019 le 02/12/2019
- Installer Python avec l'option pip : https://www.python.org/downloads/
- Installer pylint.
- Installer le module Python : https://marketplace.visualstudio.com/items?itemName=ms-python.python
- Choisir le module python par défaut :
Ctrl+Shift+P:Python: Select Interpreter
Configuration
Dans les préférences utilisateurs (CTRL+,), mettre
Editor: Tab Completionà2.pylint args:--enable=all --indent-string="\_\_" --indent-after-paren=2 --disable=missing-module-docstring,missing-function-docstring,missing-class-docstring
Bugs
Python:command 'python.setInterpreter' not found
Supprimer le fichier ~\.vscode\extensions\ms-python.python-xxxx\package.nls.[language].json
Applicable 2019.4.11881 à 2020.4.76186.
Python:command 'python.setInterpreter' not found Archive du 24/04/2019 le 06/05/2020
OpenCv
L'autocomplétion ne fonctionne pas.
Ajouter à pylint args : --extension-pkg-whitelist=cv2
prog/vsc/python.1588744004.txt.gz · Dernière modification : de root
