Skip to content

Instantly share code, notes, and snippets.

@gokulkrishh
Last active December 10, 2021 20:17
Show Gist options
  • Save gokulkrishh/9dd54a34ed93701a37811f0eb2e37822 to your computer and use it in GitHub Desktop.
Save gokulkrishh/9dd54a34ed93701a37811f0eb2e37822 to your computer and use it in GitHub Desktop.
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