VSCode - 从树视图中打开多个文件并快速打开
VSCode - Open multiple files from tree view and quick open
如何从树视图(文件资源管理器)select 和打开多个文件以及在 Visual Studio 代码中快速打开?我正在寻找可以 shift-up/down 或 shift-mouseclick 到 select 多个文件并在单击 enter 时打开它们的东西。
是否有启用此功能的设置或扩展程序?
v1.20(2018 年 2 月)添加了部分此功能。您现在可以多 select 个文件 https://code.visualstudio.com/updates/v1_20#_multi-select-in-the-explorer 并在旁边的新编辑器组和上下文菜单中的其他组功能中打开它们。
在 v1.47 中,您可以使用新命令从资源管理器中一个接一个地打开文件,而不会失去对资源管理器的关注:
{
"key": "alt+u", // whatever keybinding you wish
"command": "list.selectAndPreserveFocus",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
// "when": "inFilesPicker && inQuickOpen" // doesn't work in quickOpen
// but rightArrow does work in the quickOpen panel
},
如何从树视图(文件资源管理器)select 和打开多个文件以及在 Visual Studio 代码中快速打开?我正在寻找可以 shift-up/down 或 shift-mouseclick 到 select 多个文件并在单击 enter 时打开它们的东西。
是否有启用此功能的设置或扩展程序?
v1.20(2018 年 2 月)添加了部分此功能。您现在可以多 select 个文件 https://code.visualstudio.com/updates/v1_20#_multi-select-in-the-explorer 并在旁边的新编辑器组和上下文菜单中的其他组功能中打开它们。
在 v1.47 中,您可以使用新命令从资源管理器中一个接一个地打开文件,而不会失去对资源管理器的关注:
{
"key": "alt+u", // whatever keybinding you wish
"command": "list.selectAndPreserveFocus",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
// "when": "inFilesPicker && inQuickOpen" // doesn't work in quickOpen
// but rightArrow does work in the quickOpen panel
},