环境配置参考:
这样可以在VS Code 中同时编写和调试 C语言和Python 的程序啦。
在Vscode 工作区中,
按F5键 调试运行 Python 程序
按F6键 调试运行 C语言 程序
我的设备和平台版本相关信息:
操作系统:
C语言编译器版本:
Python语言版本:
VS Code版本:
VS Code 各文件配置内容
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python3",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"env": {
},
"envFile": "${workspaceFolder}/.env"