Search code examples
visual-studio-2013

Add "Format Document" command to a toolbar, and searching for toolbar commands in general


On the "HTML Source Editing" toolbar in Visual Studio, there's a "Format Document" button. I want to add that button to another toolbar because I don't want to have the former toolbar visible. I can't find the command, though, in any of the command categories.

The command is accessible under the "Edit > Advanced" menu, and it's also shown by going to "Options > Environment > Keyboard" as being associated with the "Edit" category:

enter image description here

However, it's not in the "Edit" category (or any other that I've looked through) of the "Add Command" dialog:

enter image description here

I know you can invoke this with Ctrl + K, Ctrl + D, but I'd like to have it on my toolbar as well.

Where is this command? And is there an easy way to search for toolbar commands?


Solution

  • This command is called Document Format and resides in the Edit category for placement on a toolbar.