Visual Studio - 在新 Window 中打开最近

Visual Studio - Open Recent in a new Window

Visual Studio 中是否有任何设置使得当我 "open recent" 时它总是在新的 window 中打开。 现在它只是在相同的 window.

中打开它

// Controls if files should open in a new window. // - default: files will open in the window with the files' folder open or the last active window unless opened via the dock or from finder (macOS only)
// - on: files will open in a new window // - off: files will open in the window with the files' folder open or the last active window
// Note that there can still be cases where this setting is ignored (e.g. when using the -new-window or -reuse-window command line option).

 "window.openFilesInNewWindow": "on",

// Controls if folders should open in a new window or replace the last active window. // - default: folders will open in a new window unless a folder is picked from within the application (e.g. via the File menu) // - on: folders will open in a new window // - off: folders will replace the last active window // Note that there can still be cases where this setting is ignored (e.g. when using the -new-window or -reuse-window command line option).

  "window.openFoldersInNewWindow": "on",

这些应该可以解决问题。在你的 settings.json.

如果不想更改默认设置,请在选择前按住 Control

macOS 上可以这样做:

  1. 按住 (cmd) 并选择一个最近使用的项目
  2. 按住 ctrl (alt) 并选择一个最近使用的项目