- Notifications
You must be signed in to change notification settings - Fork339
Royi edited this pageDec 10, 2021 ·11 revisions
Unzip VS Code ZIP file (SeeVS Code Download, Look for the.zip in 64 Bit variant) into<WinPythonInsFolder>/t/VSCode.
have a vscode and install the python extension.
Currently three options:
Option 1:
- launch you favorite "winpython command prompt"
- type "code" to lauch vscode, and do ++P to select the current Python interpreter in the path
Option 2:
- register winpython:https://github.com/Microsoft/vscode-python/issues/784#issuecomment-367430225
nota:
- the user "settings.json" of VSCode is in "C:\Users[your_profile]\AppData\Roaming\Code\User, for a VSCODE windows install,
- a VSCODE systems install brings automatic updates,
- Jedi is our classic completer, that Spyder-4 and VSCode tends to replace per "Microsoft langage server"
to make it work:
- create a file toto.py with print('hello') in it
- save it
- right -clik run-it in a python terminal (seehttps://www.youtube.com/watch?v=6YLMWU-5H9o at around 5'
- see also tutorialhttps://code.visualstudio.com/docs/python/python-tutorial
Option 3: (too complex)
- set the full path to winpython in your VScode setting:https://github.com/Microsoft/vscode-python/issues/784#issuecomment-367429708
- open the VScode menu "file->preferences->settings"-in the settings window, reight-click on the "..." at the rigt o fthe "user settings" line and choose "open settings.json"
- complete or create the line python.pythonPath:
- open the VScode menu "file->preferences->settings"-in the settings window, reight-click on the "..." at the rigt o fthe "user settings" line and choose "open settings.json"
"python.pythonPath": "C:\\WinP\\bd37\\bu\\winp64-3.7.x.0\\python-3.7.1rc2.amd64\\python.exe", - full example:{ "python.pythonPath": "C:\\WinP\\bd37\\bu\\winp64-3.7.x.0\\python-3.7.1rc2.amd64\\python.exe", "workbench.colorTheme": "Visual Studio Dark", "editor.minimap.enabled": true, "python.linting.pylintArgs": [ "--disable=C0301", // Line too long "--disable=C0103", // Invalid function name" "--disable=C0303", // Trailing whitespace "--disable=C0111" // :Missing function docstrin" ], "editor.renderWhitespace": "none", "editor.renderControlCharacters": true, "[cpp]": { "editor.quickSuggestions": false }, "[c]": { "editor.quickSuggestions": false }, "python.jediEnabled": false}