Skip to content

Instantly share code, notes, and snippets.

@nopeless
Last active September 5, 2021 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nopeless/9609f5e45adc5b0032d6b7cba8e9ba69 to your computer and use it in GitHub Desktop.
Save nopeless/9609f5e45adc5b0032d6b7cba8e9ba69 to your computer and use it in GitHub Desktop.
How to make private extension in vsc
cd %USERPROFILE%/.vscode/extensions
yo code
# if that errors do
npm install -g yo generator-code

# This is an important step
# I found this the hard way but without a "__metadata" in the package.json, you cannot set themes nor activate extensions
# So, here is a dummy payload that you can add to your package.json
{
	"__metadata": {
		"id": "dd12ba5d-06ec-4a79-bbcd-7bf7b393f16d",
		"publisherDisplayName": "dddddddddddddddddddddddddd",
		"publisherId": "010cea26-f314-442a-b873-f360086ef6fd"
	}
}

Then search for your extension using @installed and you can see its on your vsc

happy coding 😄

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