RageBubble

如何让 github copilot chat 阅读打开文件的所有内容?

  •  
  •   RageBubble · Dec 18, 2023 · 1859 views
    This topic created in 880 days ago, the information mentioned may be changed or developed.
    我在 vscode 中使用 copilot ,但每次问他"这个文件是干什么的"或者"what does this file do",copliot chat 都只会读取 vscode 右侧页面能覆盖,或者说当前能显示的代码行数,而无法直接读取打开的整个文件内容。

    请问各位有这样的问题吗,又是怎么解决的呢?
    1 replies    2023-12-25 20:25:54 +08:00
    alanhe421
        1
    alanhe421  
       Dec 25, 2023
    JB 的话,你可以直接选择这些打开的文件。

    VSC 的话,你可以 @workspace 命令或者直接在打开的文件下,右键去操作 copilot 就会自动收集这个作为上下文了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:24 · PVG 07:24 · LAX 16:24 · JFK 19:24
    ♥ Do have faith in what you're doing.