vscode中ssh环境登录copilot没有反应的问题解决

在vscode中选择左上角文件-首选项-设置进入以下页面

选择扩展-GitHub Copilot,点击在settings.json中编辑

将settings.json文件替换为以下代码

XML 复制代码
{
    "remote.SSH.remotePlatform": {
        "xx.xx.xx.xx": "linux"//替换成自己的远程IP地址
    },
    "remote.extensionKind": {
        "pub.name": [
            "ui"
        ],
        "GitHub.copilot": ["workspace"],
        "GitHub.copilot-chat": ["ui"]
    },
    "github.copilot.nextEditSuggestions.enabled": true,
    "github.copilot.chat.agent.thinkingTool": true,
    "github.copilot.enable": {
        "*": true,
        "plaintext": false,
        "markdown": true
    },
    "github.copilot.advanced": {
        "debug.overrideEngine": "copilot-codex",
        "debug.testOverrideProxyUrl": "",
        "debug.overrideProxyUrl": ""
    }
}

这时候远程服务器上的就可以登录了,但是我这里显示工作区不对,再点击左上角文件-将文件夹添加到工作区,实测可以使用agent模式编辑远程服务器文件。

相关推荐
摇滚侠3 天前
IDEA 创建 Java 项目 手动整合 SSM 框架
java·ide·intellij-idea
霸道流氓气质3 天前
Trae IDE 新手入门指南
ide
BBWEYY终身尊贵会员3 天前
2026年6月四款建站工具怎么选?BBWEYY、比文云、GitHub Copilot、Dreamweaver 简明对比
github·copilot·dreamweaver
爱就是恒久忍耐3 天前
VSCode里如何比较2个branch
ide·vscode·编辑器
意法半导体STM323 天前
【官方原创】如何为STM32CubeMX2配置Visual Studio Code配置方案
vscode·stm32·单片机·嵌入式硬件·策略模式·stm32cubemx·嵌入式开发
MicrosoftReactor3 天前
技术速递|从一次性提示到标准化工作流:如何在 GitHub Copilot CLI 中使用自定义智能体
github·copilot·cli·智能体
bloglin999993 天前
vscode中可视化的合并分支,在“合并编辑器中解析”中“与基线进行比较”是什么意思
ide·vscode·编辑器
终将老去的穷苦程序员3 天前
IntelliJ IDEA 的安装教程
java·ide·intellij-idea
天疆说3 天前
在 Ubuntu 的 VSCode 中配置 MATLAB
vscode·ubuntu·matlab
春日见4 天前
vscode的AI编程插件推荐:
大数据·ide·vscode·算法·机器学习·编辑器·ai编程