Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Export @code Extensions to a Markdown List

You can run either of the following snippets in your terminal to generate a markdown list of your VS Code extensions.

code --list-extensions | awk '{ print "* [" $1 "](\?itemName\=" $1 ")" }'


NOTE: You can append | pbcopy to either of the above commands to pipe the output to your Mac's copy/paste buffer.

#!/usr/bin/env node
const { exec } = require("child_process");
exec("code --list-extensions", (err, stdout) => {
if (err) { return; }
const markdown = stdout.split("\n").filter( e => e ).map(extension =>
`* [${extension}](\?itemName\=${extension})`
"name": "vscode-extension-markdown",
"version": "1.0.0",
"bin": "./index.js"