Last active
December 7, 2024 19:15
List the visual studio code installed extensions (https://git.io/installed-vscode-extenstions)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' | |
); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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