You can find the defaults at C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Profiles
, with a general settings and some language-specific overrides. There's an additional override in IDE\VC\Profiles
as well.
In my case, I wanted to move 'Start new instance" on a Project into the top-level context menu. So I:
- Made a copy of
CurrentSettings.vssettings
- Added a new command where I wanted it (via the Tools > Customize... GUI)
- Found the command I wanted to clone and moved it up one
- Closed VS (it saves on exit)
- Compared the two files to find the diffs (use your favorite tool.) You'll find them under
Category[@name="Environment_CommandBars"]\CommandBars\UserCustomizations
as add
remove
and modify
entries
- Took the
Cmd
attribute from the moved entry and pasted it over the added one (it was Cmd="{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}:00000164"
for me, to save interested parties a few steps)
- Undid the move to retain only the added entry
I wasn't able to find a command entry for this anywhere in the defaults, so had to figure it out the hard way.