首页 > 其他分享 >迁移 vscode 配置的方法

迁移 vscode 配置的方法

时间:2022-11-30 20:35:19浏览次数:62  
标签:Code vscode 配置 Mac extensions User 迁移 OS

来源:https://stackoverflow.com/questions/35368889/how-can-i-export-settings

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.

 

标签:Code,vscode,配置,Mac,extensions,User,迁移,OS
From: https://www.cnblogs.com/yinhuachen/p/16939619.html

相关文章