• 请不要在回答技术问题时复制粘贴 AI 生成的内容
whitewatercn
V2EX  ›  程序员

vscode 的 prompt.mdinstructions.md 有什么区别?

  •  
  •   whitewatercn · Dec 31, 2025 · 2263 views
    This topic created in 143 days ago, the information mentioned may be changed or developed.

    个人理解 prompt.md 是 copilot 通用的提示词 instructions.md 是专门针对某个项目、某类语言的提示词

    但是感觉两个能互相替代?

    官方的说明

    https://code.visualstudio.com/docs/copilot/customization/custom-instructions

    https://code.visualstudio.com/docs/copilot/customization/prompt-files

    3 replies    2026-01-02 11:30:33 +08:00
    whitewatercn
        1
    whitewatercn  
    OP
       Dec 31, 2025
    琢磨了一下,基本搞明白了
    https://forum.beginner.center/t/topic/2563
    AoEiuV020JP
        2
    AoEiuV020JP  
       Dec 31, 2025
    没明白, 我一开始根据指引创建了 prompt.md ,后面发现一点效果没有,
    然后根据指引创建了 instructions.md , 有效,
    最后发现是自动在用户设置.json 里加上了目录.github/instructions ,而 prompt 可能露了啥配置, 麻烦,instructions 应该就够了吧,
    seven777
        3
    seven777  
       Jan 2
    prompt.md 类似于一段话的快捷方式,把一大段你的要求用快捷方式告诉 copilot.
    但是它的调出方式不友好, / 斜杠下有很多内容,还是要输入筛选,或者去翻.

    .GitHub 文件夹下的 instructions.md 是 GitHub Copilot 识别的"规则/准则",但实际体验下来远不是 GitHub Copilot 介绍的那样好用, 即便你写得再完美+精简, 还得看模型是不是傻子.
    实测看来, Grok 和 Claude 属断档式的优秀, ChatGPT 和 Gemini 处于第二档, 其他的都是其他,国产的没用.

    目前看来,最有实际帮助是 AGENTS.md + 各种 MCP
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2216 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 43ms · UTC 00:31 · PVG 08:31 · LAX 17:31 · JFK 20:31
    ♥ Do have faith in what you're doing.