A VS Code extension that lists up to 30 recently opened folders and opens the selected one in a new VS Code window.
Features
Available via the Command Palette (Ctrl+Shift+P -> File: New Window with Recent Folder)
Available via a status bar item ("Recent in New Window")
Available via the keybinding Ctrl+K Ctrl+Shift+R (Cmd+K Cmd+Shift+R on macOS)
Lists up to 30 recently opened folders
Opens the chosen folder in a new VS Code window
Why is there no File menu entry?
VS Code does not offer a public menu contribution point for the native File menu, so extensions cannot add
entries there. Earlier versions of this extension declared a menubar/file menu contribution, which VS Code
silently ignores - that is why no menu entry appeared. The command is therefore exposed through the supported
entry points listed above.
Requirements
VS Code 1.74.0 or newer.
Install This Extension in VS Code
Option 1: Run it in Extension Development Host (for testing)
Clone this repo and install dependencies:
npm install
Build the extension:
npm run compile
Open the project in VS Code and press F5.
In the new Extension Development Host window, run the command from the Command Palette
(File: New Window with Recent Folder), click the status bar item, or press Ctrl+K Ctrl+Shift+R.
Option 2: Install as a VSIX package
Install the VS Code packaging tool:
npm install -g @vscode/vsce
From the project root, create a package:
vsce package
Install the generated .vsix file in VS Code:
UI: Extensions view → ... menu → Install from VSIX...
CLI: code --install-extension <package-file>.vsix
Publish to the VS Code Marketplace
Ensure your publisher in package.json matches your Marketplace publisher ID.
Create a publisher in the Visual Studio Marketplace (if you do not already have one).
Create an Azure DevOps Personal Access Token (PAT) with Marketplace publish/manage scope.
Log in with vsce:
vsce login <your-publisher-id>
Paste the PAT when prompted.
Bump the extension version in package.json (for example 0.1.0 → 0.1.1).
Publish:
vsce publish
or publish a specific version bump directly: vsce publish patch / minor / major