You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code按数字1提示“command 'bracket-pair-color-dlw.run' not found”求助

解决VS Code按下数字1键弹出命令不存在提示的问题

问题描述

按下键盘字母Q上方的数字1键时,VS Code弹出“command 'bracket-pair-color-dlw.run' not found”提示,更换键盘后问题依旧。已卸载所有括号相关扩展及本地对应文件,但问题仍存在。相关报错日志如下:

启动日志

2023-05-18 08:26:31.066 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2023-05-18 08:26:31.403 [error] Extension 'tabnine.tabnine-vscode' wants API proposal 'inlineCompletions' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. 2023-05-18 08:26:31.416 [warning] [twxs.cmake]: 'cmake.cmakePath() + + ЯLICH. 01 2 0101 01 MLICH.2023-05-18 08:26:34.520 [info] [perf] Render performance baseline is 51ms
2023-05-18 08:26:35.824 [error] [Extension Host] (node:8228) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code --trace-deprecation ... to show where the warning was created)
2023-05-18 08:27:11.527 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal
'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2023-05-18 08:27:11.753 [error] Extension 'tabnine.tabnine-vscode' wants API proposal 'inlineCompletions' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2023-05-18 08:27:11.764 [warning] [twxs.cmake]: 'cmake.cmakePath' (€) 8€* + *SLICH. 01 42 010I SO ŠLICH.
2023-05-18 08:27:13.641 [error] [Extension Host] (node:10324) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Code --trace-deprecation ...` to show where the warning was created) 2023-05-18 08:27:14.618 [info] [perf] Render performance baseline is 20ms

按键触发日志

2023-05-18 09:21:59.310 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-05-18 09:21:59.310 [info] [KeybindingService]: | Resolving 1
2023-05-18 09:21:59.311 [info] [KeybindingService]: \ From 1 keybinding entries, matched bracket-pair-color-dlw.run, when: no when condition, source: user. 2023-05-18 09:21:59.311 [info] [KeybindingService]: Received keydown event - modifiers: [], code: Digit1, keyCode: 49, key: 1
2023-05-18 09:21:59.311 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Digit1, keyCode: 22 ('1')
2023-05-18 09:21:59.311 [info] [KeybindingService]: | Resolving 1
2023-05-18 09:21:59.311 [info] [KeybindingService]: \ From 1 keybinding entries, matched bracket-pair-color-dlw.run, when: no when condition, source: user. 2023-05-18 09:21:59.311 [info] [KeybindingService]: + Invoking command bracket-pair-color-dlw.run.

解决方案

核心原因

卸载扩展后,用户自定义的快捷键绑定未被清除,数字1键仍被绑定到已失效的bracket-pair-color-dlw.run命令。

步骤

  1. 打开快捷键设置:按下Ctrl+K Ctrl+S(Windows/Linux)或Cmd+K Cmd+S(Mac)。
  2. 在搜索框输入bracket-pair-color-dlw.run,找到对应的绑定条目。
  3. 右键点击条目选择删除,或点击右侧编辑图标移除Digit1按键绑定。
  4. 保存设置后重启VS Code即可。

备用方案(若上述步骤无效)

  • 打开用户配置JSON:按下Ctrl+,(Windows/Linux)或Cmd+,(Mac),点击右上角的打开设置(JSON)图标。
  • 搜索bracket-pair-color-dlw.run相关配置,删除对应行后保存。
  • 完全关闭VS Code后重新启动。

内容的提问来源于stack exchange,提问作者Yong Jin Park

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 15:27:45