博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【VS Code】Code Runner插件修改默认为python3
阅读量:3907 次
发布时间:2019-05-23

本文共 282 字,大约阅读时间需要 1 分钟。

由于Linux系统自带了Python2和Python3,在vscode运行默认是python2,导致每次运行后我还得把命令切换成python3,甚是麻烦,之前找了好一些,很多也没讲清楚,对于新手而言,settings.json不知道在哪找,后面的操作就做不了

  1. VS Code中打开 扩展 -> Code Runner -> Manage -> 扩展设置
    在这里插入图片描述
  2. 找到 Code-Runner: Executor Map 打开 settings.json
    在这里插入图片描述
  3. 将“python”改为“python3”(我这里是已经改好了的)
    在这里插入图片描述
    设置完成后下次点击运行便是用的python3运行代码

转载地址:http://onqen.baihongyu.com/

你可能感兴趣的文章
BloomFilter
查看>>
Bloom Filter - Math deduce
查看>>
Bit Byte Megabyte Gigabyte
查看>>
Bits Bytes and Words
查看>>
Python yield and generator
查看>>
Python yield and iterables
查看>>
Python string find
查看>>
del Statement
查看>>
Python Dict all
查看>>
Python Rate Limiter
查看>>
Python list to string
查看>>
Python list dict iteration
查看>>
Linux basic knowledge
查看>>
Difference Between Hard & Soft Links
查看>>
Linux Hard link and Symbolic link
查看>>
Hard Link Vs Soft Link
查看>>
redis brief intro
查看>>
mongo db brief intro
查看>>
Kafka basic intro
查看>>
Python multiprocessing
查看>>