Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 237
rory.ap Avatar asked Jan 07 '15 15:01

rory.ap


People also ask

How do I add a toolbar to my toolbar in word?

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.

Can I add my own commands to a toolbar?

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.

What is a toolbar in Visual Studio?

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.

How to add File tab in quick access toolbar in Windows 10?

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.


1 Answers

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

like image 62
Sergey Vlasov Avatar answered Oct 03 '22 03:10

Sergey Vlasov