简体   繁体   English

Visual Studio代码IDE键盘快捷键自定义

[英]visual studio code IDE keyboard shortcuts customization

I am new to visual studio code IDE. 我是Visual Studio Code IDE的新手。 I know about keybinding.json and have been playing with what's in there. 我知道keybinding.json,并且一直在玩那里的东西。 My question is if there is a file that stores a complete list of "command"s? 我的问题是,是否有一个文件存储“命令”的完整列表? eg: "workbench.action.splitEditor". 例如:“ workbench.action.splitEditor”。 Without a complete list of such command strings, I don't know what I can customize beyond what's in the keybinding file. 如果没有这些命令字符串的完整列表,我不知道除了键绑定文件中的内容之外我还可以自定义什么。

I have been using vs for more than 10 years, there are a few things I always do and I wonder if there is a way to achieve the same result in VSCode: 1. "alt+shift+l" -> go from current editing file from editor to solution explorer, and the cursor is on the current editing file in the solution explorer 2. "enter" -> hit enter key on a highlighted file name in solution explorer opens that file in editor area 3. "esc" -> hit esc key when focus is on solution explorer brings focus back to editing area. 我使用vs已有10多年了,我一直在做一些事情,我想知道是否有办法在VSCode中实现相同的结果:1.“ alt + shift + l”->退出当前编辑从编辑器到解决方案资源管理器的文件,并且光标在解决方案资源管理器2中的当前编辑文件上。“输入”->在解决方案资源管理器中高亮显示的文件名上按Enter键,在编辑器区域3中打开该文件。“ esc”- >当焦点位于解决方案资源管理器上时,按esc键可将焦点返回到编辑区域。 4. alt arrow keys -> when in editing area, performs column based editing 4. alt方向键->在编辑区域时,执行基于列的编辑

您可以看到操作>首选项>键盘快捷键的完整列表。

  1. "alt+shift+l" -> go from current editing file from editor to solution explorer, and the cursor is on the current editing file in the solution explorer “ alt + shift + l”->从当前编辑文件从编辑器转到解决方案资源管理器,并且光标在解决方案资源管理器中的当前编辑文件上

Ctrl-Shift-E does exactly that now (as of 1.19.3, these are Windows hotkeys, other platforms slightly differ). Ctrl-Shift-E现在完全可以做到这一点(从1.19.3开始,这些是Windows热键,其他平台略有不同)。

  1. "enter" -> hit enter key on a highlighted file name in solution explorer opens that file in editor area “输入”->在解决方案资源管理器中高亮显示的文件名上按Enter键,在编辑器区域中打开该文件

This works like that now out of box. 这就像开箱即用。

  1. "esc" -> hit esc key when focus is on solution explorer brings focus back to editing area. 当焦点位于解决方案资源管理器上时,“ esc”->按esc键会将焦点移回到编辑区域。

To go to VSCode editor from anywhere: Ctrl-1. 要从任何地方进入VSCode编辑器:Ctrl-1。

  1. alt arrow keys -> when in editing area, performs column based editing alt箭头键->在编辑区域中时,执行基于列的编辑

Ctrl+Alt+ ↑ / ↓ works for this now. Ctrl + Alt +↑/↓现在可以使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM