V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
formulahendry
V2EX  ›  分享创造

Code Runner Copilot,帮助你在 VS Code 中运行代码!

  •  
  •   formulahendry ·
    formulahendry · 23 天前 · 2197 次点击

    大家好,我是 Code Runner 插件的作者。

    本周,微软宣布了 GitHub Copilot Extension 。于是,我花了一点时间,也给 Code Runner 撸了一个 Copilot 。

    部分使用 VS Code 的初学者,经常遇到这样那样的问题:

    • 为什么我的代码跑不起来?
    • 什么是 PATH 环境变量?
    • 如何支持 stdin ?
    • 怎么在 terminal 中运行?
    • 怎么定制化每个语言的运行参数?
    • 怎么添加新的编程语言支持?

    有了全新的的 Code Runner Copilot 插件,一切问题都迎刃而解!

    你可以直接在 GitHub Copilot Chat 里向他提问:

    甚至直接运行代码:

    Code Runner Copilot ,你的代码运行智能副驾驶:

    https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner-copilot

    代码以 MIT Lisense 开源,欢迎围观:

    https://github.com/formulahendry/vscode-code-runner-copilot

    注意,因为 Chat API 还没上 stable 版本的 VS Code ,所以目前需要最新的 VS Code Insiders 1.90 来使用本插件。

    6 条回复    2024-05-24 21:34:56 +08:00
    shinession
        1
    shinession  
       23 天前
    支持一下大佬, code runner 我有用, 可以运行一些不常用的语言
    assclb
        2
    assclb  
       23 天前
    star
    billzhuang
        3
    billzhuang  
       23 天前 via iPhone
    牛逼
    Nasei
        4
    Nasei  
       23 天前
    没看 copilot extension 如何实现,随便翻了下,这个东西最主要的就是"You are a VS Code expert to use "Code Runner..." 这截提示词吗?
    formulahendry
        5
    formulahendry  
    OP
       23 天前
    @shinession 谢谢~
    formulahendry
        6
    formulahendry  
    OP
       23 天前   ❤️ 1
    @Nasei 目前还是主要靠 Prompt Engineering 。等有 Embedding API 之后,打算考虑引入 RAG ,就会强许多。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   833 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:43 · PVG 04:43 · LAX 13:43 · JFK 16:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.