VScode中Code Runner插件警告: Code language not supported or defined.

2,060 阅读1分钟

VSCode插件–code runner 无法使用问题: Code language not supported or defined.

image.png

具体步骤(需先安装CODE RUNNER扩展):

  1. 设置->搜索"run code"
  2. 下拉找到"Code-runner.executorMapByFileExtension"
  3. 点击"在settings.json种编辑"

image.png

  1. 然后添加 "code-runner.defaultLanguage": "javascript",想要支持的语言即可 image.png