xxxxxxxxxx
# Open vscode in a directory where you want to save the output to a txt file
# Press ctrl+~ to open terminal and ensure "bash" is your chosen platform
code --list-extensions --show-versions > extensions.txt
# Type code --help for more options
xxxxxxxxxx
# Just listing the extensions
code --list-extensions
# Generate install commands for all extensions
code --list-extensions | % { "code --install-extension $_" }
# List all the URL's to the extensions
code --list-extensions | % { "https://marketplace.visualstudio.com/items?itemName=$_" }
xxxxxxxxxx
# Make sure you run this command in your system's terminal or command prompt,
# not the integrated terminal in VSCode
code --list-extensions
This command lists all the installed extensions with their publisher names and extension names, which can be useful for sharing your extensions list or setting up a new development environment.