V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
noyidoit
V2EX  ›  Visual Studio Code

求助: VSCode for Windows 无法在插件页面复制粘贴

  •  
  •   noyidoit · 2022-05-24 15:01:33 +08:00 · 1454 次点击
    这是一个创建于 674 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如图 VSCode issue

    已经做了以下的操作, 问题依旧

    • 移除所有其它插件
    • 删除用户设置
    • 删除用户快捷键
    • 重新安装最新版 VSCode

    关联 Can't copy any text from extensions pages #69315

    For SEO: vscode copy paste doesn't work in extension pages

    VSCode Version
    Version: 1.67.2 (user setup)
    Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
    Date: 2022-05-17T18:15:52.058Z
    Electron: 17.4.1
    Chromium: 98.0.4758.141
    Node.js: 16.13.0
    V8: 9.8.177.13-electron.0
    OS: Windows_NT x64 10.0.22000
    
    2 条回复    2022-05-24 16:17:18 +08:00
    Curtion
        1
    Curtion  
       2022-05-24 15:24:14 +08:00   ❤️ 1
    同版本可重现,Ctrl+C 能复制成功,但是使用鼠标右键菜单无法复制
    noyidoit
        2
    noyidoit  
    OP
       2022-05-24 16:17:18 +08:00
    @Curtion
    感谢, 我尝试使用 `Ctrl+V` 的时候并没有删除快捷键设置, 看到你的回复后去试了下, 快捷键确实可用.

    排查了一下, 我之前快捷键也用不了的原因是因为在 keybindings.json 中填入了
    ```json
    {
    "key": "ctrl+c",
    "command": "-editor.action.clipboardCopyAction"
    },
    {
    "key": "ctrl+v",
    "command": "-editor.action.clipboardPasteAction"
    },
    ```
    去掉之后就可以用快捷键了.

    > 给踩到同样坑的同志: 隐约记得当初添加这个设置是因为用了 VSCode Vim 这个插件会导致`Ctrl+C/V`变成了我不想要的功能, 但后面我在 setting.json 中设置了 `vim.handleKeys`, 就不再需要在 keybindings.json 设置了.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5431 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 08:46 · PVG 16:46 · LAX 01:46 · JFK 04:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.