Skip to content

Instantly share code, notes, and snippets.

@ricveal
Last active March 24, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricveal/913703962e0aa3bba8393ba86d3ddbfa to your computer and use it in GitHub Desktop.
Save ricveal/913703962e0aa3bba8393ba86d3ddbfa to your computer and use it in GitHub Desktop.
Script para obtener extensiones instaladas en 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')
list
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