简体   繁体   English

VSCode:如何在快速打开中设置显示所有打开的编辑器的键盘快捷键(edt命令)

[英]VSCode: How do I set keyboard shortcut for Show All Opened Editors in Quick Open (edt command)

cmd+p ( ctrl+p on windows) searches files in current project and if I want to search currently opened files I can do cmd+p and then type edt (one of the commands they show you when you press ? to list available commands) cmd+p (Windows上的ctrl+p )搜索当前项目中的文件,如果我想搜索当前打开的文件,我可以执行cmd+p然后键入edt (当您按?列出可用命令时,它们会显示其中一个命令)

vscode available commands from command palette vscode命令调色板中的可用命令

Is there a way to create a keyboard shortcut to open the command palette with edt pre-filled? 有没有办法创建一个键盘快捷方式来打开命令调色板与edt预填充? Just like open symbols with @ pre-filled. 就像带有@ pre-filled的开放符号一样。 In Sublime I can write "args": {"text": "@"} in the setting json file but I can't find anything similar in VSCode, any ideas? 在Sublime中我可以在设置json文件中写"args": {"text": "@"}但是我在VSCode中找不到类似的东西,任何想法?

In vscode version 1.30.2 在vscode版本1.30.2中
You can go to menu File -> Preferences -> Keyboard Shortcuts 您可以转到菜单File -> Preferences -> Keyboard Shortcuts
And go to Show All Editors 然后转到Show All Editors
The default is: Ctrl + K Ctrl + P 默认值为: Ctrl + K Ctrl + P

没关系,我在发表这篇文章之后才发现这个命令在默认的键绑定中...

{ "key": "alt+cmd+tab", "command": "workbench.action.showAllEditors" },

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

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