问题标签 [vscode-keybinding]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
16 浏览

triggers - vscode 的菜单切换触发器不可操作

vs代码中菜单栏的预设切换触发器是alt关键,多年来我已经将菜单栏设置为“切换”,但最近除非我打开一个新窗口,否则该alt键不会触发菜单栏甚至在我在处理它大约 45 分钟后确实启动一个新窗口的情况下,alt 键停止再次切换菜单。

菜单栏可见性设置的屏幕截图

到目前为止我尝试过的

我已经尝试重置键绑定,导致同样的问题,我已经尝试了几个解决方案来解决我在这里发现的类似问题......他们都没有真正解决问题,只需切换提供更多涉及流程的替代方案比敲击一个键长(畏缩)

我已经完全重装了1.60.2版本

在我使用我的 Github 帐户登录并同步我的设置之前和之后问题仍然存在

注意:我使用的是 Ubuntu 20.04.3 LTS,以防万一有人知道它是如何影响这个问题的。

0 投票
0 回答
12 浏览

visual-studio-code - VSCode 检测 numpad_divide 而不是斜杠

VSCode 检测到我在 numpad 中的“斜杠 (/)”为 numpad_divide,因此无法识别“切换行注释”的键绑定

在屏幕截图中,您可以看到我的斜线实际输出的是什么

在此处输入图像描述

0 投票
1 回答
29 浏览

visual-studio-code - 无论如何,当 arg 在 VScode 中的 keybindings.json 中时,是否有检查非活动终端编辑器?

我想createTerminalEditor如果还没有terminalEditor打开。

注意:我说的是terminalEditor而不是terminal.

所以,我正在寻找一个whenarg ,它说类似editorAlreadyExists != terminalEditor,就像有activeEditoraceepts 字符串一样terminalEditor

有没有办法做到这一点?

这是activeEditor供参考的示例,但我想检查terminalEditor所有已打开的编辑器中是否存在,而不仅仅是activeEditor.

0 投票
1 回答
24 浏览

visual-studio-code - 使用 1 个键盘快捷键切换到预览和从预览切换?

我尝试在 Markdown.showSource 的 When Expression 中使用textInputFocus && !inputFocus && editorLangId == 'markdown'textInputFocus && editorReadonly && editorLangId == 'markdown',以及 markdown.showPreview 的相关版本。

但是当 Preview 有 Focus 时,快捷方式仍然不起作用。

0 投票
1 回答
41 浏览

visual-studio-code - Visual Studio 代码中的键绑定

我正在输入,Visual Studio Code我敲了很多键,从那一刻起,由于某种原因,当我按下时,ctrl + alt + n我得到}并且不能再用那个键绑定运行我的程序,尽管它仍然在运行按钮上说它仍然是它的ctrl + alt + n快捷方式,有人可以帮我重置一下,这样我就可以运行我的程序了ctrl + alt + n

0 投票
0 回答
14 浏览

visual-studio-code - 用于最大化 vscode 中的资源管理器(或侧边栏)的命令 ID?

问题:

如何最大化 vscode 中的资源管理器或侧边栏?

背景:

我在下面的任何一个文档中都没有找到任何命令 ID。但两者都没有声称是全面的。

  1. 内部命令列表
  2. 入门文档
0 投票
0 回答
13 浏览

visual-studio-code - 如何修复在vscode中等待键和弦

我有很多键绑定,如下所示:

但现在我不能打字;因为 vscode 正在等待下一个键和弦。我在这里读到增加的 5 秒超时,但等待的时间很长。有什么解决方法吗?

https://github.com/microsoft/vscode/issues/15550

0 投票
0 回答
10 浏览

visual-studio-code - 在 VS Code 中,快速切换窗口和切换窗口有什么区别?

似乎两个命令都做同样的事情?

在此处输入图像描述

0 投票
0 回答
49 浏览

visual-studio-code - vs code consistent keybindings for Mac and windows with settings sync

I use a windows computer for work and have painstakingly set up many keybindings for common tasks, as well as many other personalizations I really would like to have transferred to my personal computer, which is a Mac.

I recently found out about and set up Settings Sync, which is pretty awesome, but I can't seem to get my keybindings to work quite how I would like.

First, it doesn't seem that any of my keybindings transferred--when I open up the keyboard shortcuts on Mac and display User Keybindings, the list is empty, yet when I do this on Windows, all my keybindings are there.

To complicate matters, I sometimes use a Windows keyboard with my Mac. Without getting into too much detail, I'll explain what I'm trying to accomplish with a particular shortcut:

On windows machine, I use the right alt and ctrl keys to open up my integrated terminal with:

alt+ctrl+t

I'd like to keep this keybinding to work even when on my Mac because when I use my windows keyboard with it, I still have the alt and ctrl keys on the right side of the keyboard.

However, on my Mac without the windows keyboard, in place of the alt and ctrl keys I have the cmd and option keys, so in this instance I'd like cmd+option+t to trigger the integrated terminal.

So, is my solution to simply recreate all my windows shortcuts that use alt+ctrl with a corresponding cmd+opt version for Mac? And what about all the missing user keybindings that didn't seem to transfer with settings sync (logs show that they should've been transferred)? If anyone has any advice about how to properly set this up, I'd greatly appreciate it. Thanks.

0 投票
2 回答
99 浏览

visual-studio-code - 为什么在vscode中绑定到“重新加载窗口”的键“Ctrl + R”不重新加载窗口?

我是vscode的新用户。

我遇到了一个问题,我被告知将通过“重新加载窗口”解决。所以我首先通过“命令面板”找到它,它确实解决了我的问题。但是,我注意到它说它绑定到“Ctrl + R”。因此,如果这是它绑定的键序列,为什么按住 Ctrl 并按 r 不执行该功能?它实际上提出了“选择打开”提示,最近的文件列表作为选择选项。