Created
December 8, 2020 07:18
-
-
Save krsntn/bb20542570feb8f96f34a59685777c9c to your computer and use it in GitHub Desktop.
to get all your vscode extensions. copy & pase it on your vscode.
This file contains hidden or 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
| 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