Skip to content

Instantly share code, notes, and snippets.

Last active December 10, 2021 20:17
What would you like to do?
List the visual studio code installed extensions (
#!/usr/bin/env node
const { exec } = require('child_process');
exec('code --list-extensions', (err, stdout) => {
if (err) console.log('Error occurred', err);
const extensions = stdout.split('\n').filter(extension => extension);
console.log(`\n✅ Installed VS Code Extensions: ${extensions.length} \n`);
console.log(, index) => `${index + 1}.${extension}`).join('\n'),
"name": "vscode-extenstions",
"bin": "./index.js",
"version": "1.0.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment