⚠️ [ DEPRECIATED ] This plugin is no longer under active development since Microsoft added built-in backup/restore functions in VSCode
Backup/Restore VSCode User Settings and Plugins
Download : Link to Marketplace
Visual Studio Code must be added to path
for this plugin to work
How to add vscode to path:
On Windows and Linux the code
command should be installed automatically. On macOS, it needs to be installed manually:
Launch VS Code. Now open the Command Palette (F1) and type shell command
to find the Shell Command: Install 'code' command in PATH
command. Restart your terminal.
The Extaintion runs every time vscode starts and runs vscode-backup.backup
command by detault.
For a bug reported where the plugin replaces the backup before importing, we disabled the autorun for now. It'll be enabled later on.
Or can be accessed manually with the folowing commands:
vscode-backup.backup
: Backs up user settings and installed plugins list in a zip file to the document folder.
vscode-backup.restore
: Restores user settings and Installs all plugins listed in the backup file from the zip located in Documents folder.
vscode-backup.open-directory
: Opens the Document folder in File Explorer to locate the vs_backup.zip
file.
Some Extensions in visual studio marketplace has different package id than what they register in system after install. Sice this plugin doesn't copy any existing extension file from one system to anoteher for privacy and security reasons and install everything from marketplace in the new system, some extensions might fail to install in the newer system if they have different package id in the marketplace. e.g. ms-vscode.csharp
has the id ms-dotnettools.csharp
in the marketplace.
Workaround: Check the output log and install the failed to install extensions manually
Some may encounter this issue in Ubuntu. Though it's been tested in Ubuntu 18 and it works, some prior versions may fail to run this command. It's also tested in all Arch linux flavours and works. Since there're countless linux distros, it's impossible for us to test in every environmet. So if anybody encounters this issue in their linux distro please let us know.
For a bug reported where the plugin replaces the backup before importing, we disabled the autorun for now. It'll be enabled later on.
Cehck Issue: #1 for details.
Windows, macOS, Linux
Clone the repository git clone https://github.com/DK013/vscdoe-backup.git
Build
Install Node-Modules: npm install
Build: npm run build
Multi-Pltform Backup/Restore
Backup package from one platform can be used to restore on another platform.
Linux Support Added
Some House Cleaning
*Check Known Issues for possible problems in different environment
macOS support added
New Zip Library for macOS Support
macOS tests started
Added Icons and Manifest for Marketplace
Initial release of vscode backup for Windows
Enjoy!