kvn
kvn

Reputation: 2300

VSCode - Open multiple files from tree view and quick open

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?

Upvotes: 0

Views: 1334

Answers (1)

Mark
Mark

Reputation: 180621

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.


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
  },

Upvotes: 1

Related Questions