Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
prog:vsc:python [2020/05/06 07:46] – Ajout de la procédure d'installation en détail root | prog:vsc:python [2024/01/18 09:13] (Version actuelle) – supprimée root |
---|
====Installation==== | |
| |
===La base=== | |
| |
Installer le [[https://marketplace.visualstudio.com/items?itemName=ms-python.python|module Python]]. | |
| |
[[https://code.visualstudio.com/docs/python/python-tutorial|Tutorial Visual Studio Code]] {{ :prog:vsc:python:code.visualstudio.com-python-2019-12-02.zip |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''. | |
| |
[[https://github.com/microsoft/vscode-python/issues/5440|Python:command 'python.setInterpreter' not found]] {{ :prog:vsc:python:python_command_python.setinterpreter_not_found_issue_5440_microsoft_vscode-python_2020-05-06_7_39_57_am_.html |Archive du 24/04/2019 le 06/05/2020}} | |
| |
===OpenCv=== | |
| |
L'autocomplétion ne fonctionne pas. | |
| |
Ajouter à ''pylint args'' : ''%%--%%extension-pkg-whitelist=cv2'' | |