Skip to content

Instantly share code, notes, and snippets.

@gokulkrishh
Last active December 7, 2024 19:15
List the visual studio code installed extensions (https://git.io/installed-vscode-extenstions)
#!/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(
extensions.map((extension, index) => `${index + 1}. https://marketplace.visualstudio.com/items?itemName=${extension}`).join('\n'),
'\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