Skip to content

weehong-1/vscode-profile-extension-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VS Code Profile Extension Extractor

A command-line tool that extracts extension IDs from VS Code profile files (.code-profile) and generates installation commands.

Overview

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

Installation

npm install

Usage

  1. Place your .code-profile files in the data/ directory
  2. Run the extractor:
# Development mode (with tsx)
npm run dev

# Production mode (requires build)
npm run build
npm start

Output

The 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
...

Project Structure

.
├── data/           # Place .code-profile files here
├── src/
│   └── index.ts    # Main extraction logic
├── dist/           # Compiled JavaScript output
└── package.json

Scripts

  • npm run dev - Run the tool in development mode (uses tsx)
  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run the compiled JavaScript

Finding VS Code Profile Files

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.

License

ISC

About

Extract extension IDs from VS Code .code-profile files and generate installation commands. Simplifies extension migration, team setup sharing, and VS Code automation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors