使用vscode编译运行多语言程序(Java、C++、C)
同上,python安装之后,在workpace中创建python文件夹,再创建python文件和.vscode文件夹(lauch.json、settings.json)。
python launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: 当前文件",
"type": "python",
"request": "launch",
"program": "${file}",//没有这句话,vscode配置之后 console不能输入
"console": "integratedTerminal",//设置false的话,你可以进入一些库的源码里面进行调试,比如说进入pytorch的一部分源码
"python": "D:\\python3", //python3的安装路径!
"justMyCode": true
},
]
}
python settings.json
{
"git.ignoreLegacyWarning": true,
"workbench.iconTheme": "vscode-icons", //启用vscode图标
"python.*pythonPath*": "D:\\python",
}