Skip to content

Instantly share code, notes, and snippets.

@termosa
Created April 3, 2021 07:58
Show Gist options
  • Save termosa/32ce7165734791b4892770642d917d2a to your computer and use it in GitHub Desktop.
Save termosa/32ce7165734791b4892770642d917d2a to your computer and use it in GitHub Desktop.
ls ~/Code | node -e "rootPath=require('path').resolve('~/Code');process.stdin.on('data', d => console.log(JSON.stringify(d.toString().split('\n').filter(Boolean).map(name => ({ name, rootPath, enabled: true })), null, 4)))" > ~/Library/Application\ Support/Code/User/projects.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment