A simple extension to quickly open predefined project folders in a Dev Container.
- Adds a command
Open Project in Dev Containerto the command palette. - Presents a Quick Pick list of your predefined projects.
- Opens the selected project folder in a new VS Code window.
- If a
.devcontainerfolder exists, VS Code will prompt to reopen the folder in a container.
- Modify
src/extension.ts: Update thePROJECTS_BASE_PATHconstant with the absolute path to the directory containing your project folders. - Modify
src/extension.ts: Update thePROJECT_NAMESarray with the names of your project folders.
- Clone or download this repository.
- Open the folder in VS Code.
- Run
npm installin the terminal to install dependencies. - Press
F5to open a new Extension Development Host window with the extension running. - Open the command palette (
Ctrl+Shift+PorCmd+Shift+P) and typeOpen Project in Dev Container.