下载需要的软件 vscode,python(可需要时候安装)
我是Ubuntu系统
安装dep包是
dpkg -c code_1.47.3-1595520028_amd64.deb
查看python版本 python3 --version
g++版本 g++ --version
若缺啥请下载啥
配置工作
执行code命令可以打开vscode
Ctrl+Shift+X是插件管理页面,搜索python点击安装
打开文件夹放项目后点击设置配置Ctrl+Shift+p 选择preferences:open setting
type -a python查看python 安装位置
或者 Command Palette (Ctrl+Shift+P), 输入Python: Select Interpreter搜搜python的版本和位置
最好按照微软的教程操作
https://code.visualstudio.com/docs/python/python-tutorial