Skip to content

Instantly share code, notes, and snippets.

@jhordyess
Created August 26, 2023 16:07
Show Gist options
  • Save jhordyess/f650da1c38e6648b6b02bbecbb0b33d4 to your computer and use it in GitHub Desktop.
Save jhordyess/f650da1c38e6648b6b02bbecbb0b33d4 to your computer and use it in GitHub Desktop.
Generate a list of your Visual Studio Code extensions and their Marketplace URLs with this bash script
#!/bin/bash
# Get the list of installed extensions
extensions=$(code --list-extensions)
# Visual Studio Code Marketplace base URL
base_url="https://marketplace.visualstudio.com/items?itemName="
# Iterate through the extensions and generate URLs
for extension in $extensions
do
extension_url="$base_url$extension"
echo "Extension: $extension"
echo "URL: $extension_url"
echo ""
done
@jhordyess
Copy link
Author

How to Use:

  1. Save the script in a .sh file.
  2. Make the script executable using chmod +x script_name.sh.
  3. Run the script with ./script_name.sh.
  4. The script will display a list of extensions and their URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment