VSCode - 从树视图中打开多个文件并快速打开 [英] VSCode - Open multiple files from tree view and quick open
问题描述
如何从树视图(文件资源管理器)中选择和打开多个文件并在 Visual Studio Code 中快速打开?我正在寻找可以通过上移/下移或 shift-mouseclick 来选择多个文件并在单击 Enter 时打开它们的东西.
How to select and open multiple files from tree view (File Explorer) and Quick open in Visual Studio Code? I'm looking for something by which I can shift-up/down or shift-mouseclick to select multiple files and open them on clicking enter.
是否有启用此功能的设置或扩展程序?
Is there a setting or extension to enable this?
推荐答案
v1.20(2018 年 2 月)添加了一些此功能.您现在可以多选文件 https://code.visualstudio.com/updates/v1_20#_multi-select-in-the-explorer 并在新的编辑器组中打开它们,并在上下文菜单中打开其他组功能.
v1.20 (Feb., 2018) adds some of this functionality. You can now multi-select files https://code.visualstudio.com/updates/v1_20#_multi-select-in-the-explorer and open them in a new editor group to the side and other group functions in the context menu.
在 v1.47 中,您可以使用新命令从资源管理器打开一个又一个文件,而不会失去对资源管理器的关注:
In v1.47 you can open file after file from the explorer without losing focus on the explorer with a new command:
{
"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
},
这篇关于VSCode - 从树视图中打开多个文件并快速打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!