当前位置:网站首页>[vscode] setting sync, a plug-in for synchronizing extensions and settings

[vscode] setting sync, a plug-in for synchronizing extensions and settings

2022-06-26 23:59:00 keruisiya

plug-in unit setting sync

It is a product that uses GitHub Medium Gists As a configuration file store to achieve synchronization . It allows us to synchronize on countless devices VSCode Configuration of .

Function

This extension can synchronize the following :

  • The configuration file
  • Shortcut key configuration
  • Start file logging
  • Snipper file ( Custom code templates )
  • VSCode plug-in unit
  • The plug-in configuration
  • Workspace Folder

Specific operation 1 : Upload configuration information

If none before start github Please register your account first , because setting sync plug-in unit Is based on Gist To store the configured

1. stay vscode Install the plug-in in
2. After installing the plug-in, the extension welcome page will pop up automatically ; And click the LOGIN WITH GITHUB

 Insert picture description here

If the operation is improper, close the extension welcome page : Re uninstall and re install

3. After login, go to the authorization page , You can safely click Authorize shanalikhan Can be authorized !

 Insert picture description here
After successful authorization : The page... Will appear :success! you may now close this tab.
Turn back to vscode, The following page appears to indicate success

 Insert picture description here

The above figure shows the page displayed by the plug-in for the first time ; if github The account has synchronized the configuration information , stay skip There will be synchronized configuration information above the button ; There is an example diagram at the end of the article .

4. Click on SKIP Button , Upload configuration information synchronously

Upload shortcut :

  • Windows/Linux:Shift + Alt + U
  • Mac:Shift + Option + U

Or open the editor command line : Command + Shift + P (Mac) Then input >Sync: Update/Upload Settings

** When we upload the configuration , The lower right corner will remind us , Whether the configuration needs to be forced to upload or download , And cover GitHub Gist The above configuration data . This is to prevent us from overwriting our own configuration file by mistake .** Direct point “ yes ” Just a matter of .

The console will have the following output :
 Insert picture description here
So far, the upload is completed .


Specific operation 2 : Download configuration information synchronously

1. Install on another host setting sync plug-in unit , Operate as one by one and log in for authorization

go back to vscode, The following page appears

 Insert picture description here

2. Select data synchronization required , Dialogue payment , choose BACK

 Insert picture description here
The plug-in will record Gist ID:
 Insert picture description here

3. Perform synchronous download

Shortcut key :

  • Windows/Linux:Shift + Alt + D
  • Mac:Shift + Option + D

Or open the editor command line Command + Shift + P (Mac) Then input >Sync: Download Settings

Waiting for download , After downloading successfully, you can see the console output .

原网站

版权声明
本文为[keruisiya]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202161717372363.html