Skip to content

Instantly share code, notes, and snippets.

@ddoomm
Last active November 5, 2023 14:01
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddoomm/e37814feab80730d9f8defc02bd95327 to your computer and use it in GitHub Desktop.
Save ddoomm/e37814feab80730d9f8defc02bd95327 to your computer and use it in GitHub Desktop.
VS Code extensions pack creation

As described here you can install the yo generator code to create themes, extensions and packs.

So, we need to install the node package:

npm install -g yo generator-code

then run:

yo code

Complete the procedure answering questions as follows:

E.g.

? What type of extension do you want to create? New Extension Pack
? Add the currently installed extensions to the extension pack? No
? What's the name of your extension? Angular Extensions Pack
? What's the identifier of your extension? ddoomm-angular-extensions-pack
? What's the description of your extension? Angular Extensions Pack
? Initialize a git repository? No

List all your installed extensions:

code --list-extensions

Now, pick out your preferred extensions and paste them in the created extension pack package.json file, inside extensionPack array.

E.g.

{
  "name": "ddoomm-angular-extensions-pack",
  "displayName": "Angular Extensions Pack",
  "description": "Angular Extensions Pack",
  "publisher": "ddoomm",
  "version": "0.0.1",
  "engines": {
    "vscode": "^1.73.0"
  },
  "categories": [
    "Extension Packs"
  ],
  "extensionPack": [ 
    "Angular.ng-template",
    "cyrilletuzi.angular-schematics",
    "infinity1207.angular2-switcher",
    "johnpapa.Angular2",
    "natewallace.angular2-inline",
    "nrwl.angular-console",
    "sanderledegen.angular-follow-selector"
  ]
}

Note: I added manually the publisher identifier.

Copy the created folder ddoomm-angular-extensions-pack inside your_user_folder/.vscode/extensions.

Tip: Filter vscode extensions by: @category:"extension packs" @installed to quickly enable\disable them for the specific workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment