VScode踩坑实录——code runner配置python3

时间:2024-03-24 16:21:11

code cunner默认使用python
但是我的库都在python3里,使用python3运行才行
在插件管理器里设置code runner
VScode踩坑实录——code runner配置python3
选择Extension Settings
VScode踩坑实录——code runner配置python3

找到Executor Map,点击 在settings.json中编辑
VScode踩坑实录——code runner配置python3

把大括号中原来默认的注释掉,输入“code-run.executorMap”,tab一下就自动补全默认的配置了
在下面找到python项,给他改成python3,就行了
这下再回去ctrl+alt+n就没问题了