Skip to content

Instantly share code, notes, and snippets.

@tripu tripu/vs-ext-to-md.md
Last active Jan 28, 2019

Embed
What would you like to do?
One-liner to dump all installed VS Code extensions as a Markdown list

This is a script I just wrote to share my installed extensions easily on this other Gist.

Example

user@host:~/whatever/dir$ (
>     for i in `ls ~/.vscode/extensions/ | rev | cut -d '-' -f 2- | rev`; do
>         NAME=$(cat ~/.vscode/extensions/$i*/package.json | jq .displayName | cut -d \" -f 2)
>         echo "* [$NAME](https://marketplace.visualstudio.com/items?itemName=$i)"
>     done
> ) | sort -f

* [Emacs Keymap](https://marketplace.visualstudio.com/items?itemName=hiro-sun.vscode-emacs)
* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
* [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.liveserver)
* [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=pkief.material-icon-theme)
* [Material Theme](https://marketplace.visualstudio.com/items?itemName=equinusocio.vsc-material-theme)
* [Quokka.js](https://marketplace.visualstudio.com/items?itemName=wallabyjs.quokka-vscode)
* [React Standard Style code snippets](https://marketplace.visualstudio.com/items?itemName=timonvs.reactsnippetsstandard)
* [VS Live Share](https://marketplace.visualstudio.com/items?itemName=ms-vsliveshare.vsliveshare)

Caveats

  • Assumes VS Code extensions live in ~/.vscode/extensions/
  • Requires jq
  • Doesn't distinguish between enabled and disabled extensions; dumps them all
(
for i in `ls ~/.vscode/extensions/ | rev | cut -d '-' -f 2- | rev`; do
NAME=$(cat ~/.vscode/extensions/$i*/package.json | jq .displayName | cut -d \" -f 2)
echo "* [$NAME](https://marketplace.visualstudio.com/items?itemName=$i)"
done
) | sort -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.