Skip to content

Instantly share code, notes, and snippets.

@krsntn
Created December 8, 2020 07:18
Show Gist options
  • Select an option

  • Save krsntn/bb20542570feb8f96f34a59685777c9c to your computer and use it in GitHub Desktop.

Select an option

Save krsntn/bb20542570feb8f96f34a59685777c9c to your computer and use it in GitHub Desktop.
to get all your vscode extensions. copy & pase it on your vscode.
const {execSync, spawn} = require('child_process')
const result = execSync('code --list-extensions')
const list = String(result)
.split('\n')
.filter(Boolean)
.map(
x => `- [${x}](https://marketplace.visualstudio.com/items?itemName=${x})`
)
.join('\n')
const proc = spawn('pbcopy')
console.log(String(result))
// proc.stdin.write(list)
// proc.stdin.end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment