1.打开VS,按下面的快捷键呼出命令窗口
Ctrl+Alt+A
2.导入/导出/重置命令
Tools.ImportandExportSettings [/export:filename | /import:filename | /reset]
导出示例:
Tools.ImportandExportSettings /export:"D:\vs-settings.vssettings"
导入示例:
Tools.ImportandExportSettings /import:"D:\vs-settings.vssettings"
重置示例:
Tools.ImportandExportSettings /reset
官方文档:
https://docs.microsoft.com/en-us/visualstudio/ide/reference/import-and-export-settings-command