27

私たちのチームのさまざまな開発者は、ここで大きく異なるチェックボックスを持っています:

Visual Studio の書式設定オプション

その結果、Visual Studio はコードを再フォーマットし続け、これが実際にコミットを汚染します。

私が望むのは、これらの設定が一貫するように、各開発者のコ​​ンピューターで実行する単一のもの(ファイルまたは何か) を持つことです。.reg

これどうやってするの?

4

2 に答える 2

13

You can export the desired settings from one of the visual studio instances from the tools menu using the option "Import and Export settings". This will save the settings to a .vssettings file (which is actually a xml file) holding stuff like

<PropertyValue name="TabSize">4</PropertyValue>

You can then either import these settings on the other machines through the user interface (same menu option) or you can load them from the commandline using

devenv.exe /Resetsettings <your settingsfile>

This commandline settings is documented here

于 2012-07-27T09:24:57.450 に答える