Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I export settings?

How is it possible to export all Visual Studio Code settings and plugins and import them to another machine?

like image 202
kagarlickij Avatar asked Feb 12 '16 17:02

kagarlickij


People also ask

How do I open export settings?

To open the Export Settings dialog in Adobe Media Encoder, select the output of a source video in the Queue panel and do one of the following: Select Export Settings from the context menu of the output. Select Edit > Export Settings. Click the format or preset name of the output.


2 Answers

With the current version of Visual Studio Code as of this writing (1.22.1), you can find your settings in

  • ~/.config/Code/User on Linux (in my case, an, Ubuntu derivative)
  • %APPDATA%\Code\User (C:\Users\username\AppData\Roaming\Code\User) on Windows
  • ~/Library/Application Support/Code/User/ on Mac OS X (thank you, Christophe De Troyer)

The files are settings.json and keybindings.json. Simply copy them to the target machine.

Your extensions are in

  • ~/.vscode/extensions on Linux and Mac OS X
  • %USERPROFILE%\.vscode\extensions (C:\Users\username\.vscode\extensions) on Windows (i.e., essentially the same place as on Linux and Mac OS X)

Alternately, just go to the Extensions, show installed extensions, and install those on your target installation. For me, copying the extensions worked just fine, but it may be extension-specific, particularly if moving between platforms, depending on what the extension does.

like image 186
T.J. Crowder Avatar answered Sep 16 '22 14:09

T.J. Crowder


There is an extension for Visual Studio Code, called Settings Sync.

It synchronises your settings by gist (Gist by GitHub). It works the same as the Atom.io extension called settings-sync.

UPDATE:

This feature is now build in VS Code, it is worth to switch to official feature. (https://stackoverflow.com/a/64035356/2029818)

You can now sync all your settings across devices with VSCode's built-in Settings Sync. It's found under Code > Preferences > Turn on Settings Sync...

like image 34
michalczukm Avatar answered Sep 17 '22 14:09

michalczukm