環境變數要設定python位置
0x001
執行(ctrl+r)->cmd->python 確認可以執行
0x002
開啟visual code
0x003
先按f1
輸入
>Task Configure Task Runner
修改一些
設定
"command": "python",
"args": [
// Ask msbuild to generate full paths for file names.
"${file}"
],
0x004
測試檔案
ctrl+shift+b
就可以測試執行
附註:
0x000
如果command要打路徑,就要改
"command": "c:\\python27\\python.exe",
0x001
安裝套件
>ext install
>ext install python
沒有留言:
張貼留言