A command-line tool that extracts extension IDs from VS Code profile files (.code-profile) and generates installation commands.
This utility processes VS Code profile files and outputs code --install-extension commands for all extensions found in each profile. This is useful for:
- Migrating extensions to a new machine
- Sharing extension lists with team members
- Backing up extension configurations
- Automating VS Code setup
npm install- Place your
.code-profilefiles in thedata/directory - Run the extractor:
# Development mode (with tsx)
npm run dev
# Production mode (requires build)
npm run build
npm startThe tool will output installation commands for each profile found:
# Processing: my-profile.code-profile
# ============================================================
# Profile: My Profile
# Extensions found: 15
code --install-extension esbenp.prettier-vscode
code --install-extension dbaeumer.vscode-eslint
code --install-extension ms-python.python
....
├── data/ # Place .code-profile files here
├── src/
│ └── index.ts # Main extraction logic
├── dist/ # Compiled JavaScript output
└── package.json
npm run dev- Run the tool in development mode (uses tsx)npm run build- Compile TypeScript to JavaScriptnpm start- Run the compiled JavaScript
VS Code profile files are typically located at:
- Windows:
%APPDATA%\Code\User\profiles\ - macOS:
~/Library/Application Support/Code/User/profiles/ - Linux:
~/.config/Code/User/profiles/
Each profile is stored as a .code-profile JSON file.
ISC