# How to Backup and Restore VS Code Extensions This guide explains how to export, save, and reinstall your Visual Studio Code extensions on a new setup or after reinstalling the editor. ## Step 1: Export Extensions Run the following command in the terminal to export your current extensions to a file: ```bash code --list-extensions > extensions-list.txt ```` ## Step 2: Restore Extensions To reinstall extensions from your backup file, use the following command: ```bash cat extensions-list.txt | xargs -n 1 code --install-extension ```