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:
However, it's not in the "Edit" category (or any other that I've looked through) of the "Add Command" dialog:
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?
On the menu bar, choose Tools > Customize. The Customize dialog box opens. On the Toolbar tab, perform one of the following sets of steps: To add a toolbar, choose the New button, specify a name for the toolbar that you want to add, and then choose the OK button.
Thank you. A toolbar is a horizontal or vertical strip that contains buttons bound to commands. You can add your own commands to toolbars on many different windows in Visual Studio: the main Visual Studio window, the Solution Explorer, and your own custom tool windows. This section shows a number of things you can do with commands on toolbars.
A toolbar is a horizontal or vertical strip that contains buttons bound to commands. You can add your own commands to toolbars on many different windows in Visual Studio: the main Visual Studio window, the Solution Explorer, and your own custom tool windows. This section shows a number of things you can do with commands on toolbars.
1 Click Customize the Quick Access Toolbar, and then click More Commands. 2 In the Choose commands from list, click File Tab. 3 Choose the command, and then click Add. 4 Remember to click OK.
This command is called Document Format and resides in the Edit category for placement on a toolbar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With