Add "Format Document" command to a toolbar, and searching for toolbar commands in general - visual-studio-2013

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?

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

Related

How do I add the "Start Window" button to the toolbar?

In Visual Studio 2019, the Start Window button is missing.
How do I add the Start Window button to the toolbar?
Pic-1.
I expect.
Pic-2.
Update-1
I did.
I don't have a Start Window button
How do I add a Start Window button?
Update-2
Note.
The Start Window button used to be.
I don't understand why she disappeared.
I did.
I don't find the Start Window button.
Or am I wrong and just don't see her because of inattention?
Pic-1
Pic-2
Pic-3
Pic-4
Click on the small "down arrow" icon at the right edge of the toolbar and select the "Add or Remove Buttons" command (usually, the only command) from the pop-up menu. That will show a list of command buttons that are – or can be – shown on the toolbar.
Make sure the "Start Window" (not sure what it's called in your language) command is checked (selecting the command will toggle it on/off).
Note that, although you have stated you have Visual Studio 2019, the icon that you've shown is the VS-2022 version. But that shouldn't make a difference: the procedure is much the same in both versions of VS.
Update:
If you don't see the "Start Window" command in the list of available buttons, then select the "Customize" command near the bottom of the list and, in the dialogue box that follows click "Add Command".
Then, in the next pop-up, select the "File" category in the left-hand pane and scroll down to get the "Start Window" command in the right-hand pane. Select that then click "OK":

How to use F1 Help without keyboard?

In Visual Studio, highlighting a keyword and pressing F1 will take you to the relevant help page documentation about it.
How can I do this if I don't have an F1 key? Is there a menu item or ribbon button or different key press I can use?
There isn't a toolbar button for "F1 Help" by default but you can customize your toolbar to add one. Click the "Add or Remove Buttons" icon at the right of your main toolbar:
Then, from the second pop-up menu you get from that small drop-down, select the "Customize..." command. In the pop-up dialogue box that follows, select the "Commands" tab and click the "Add Command" button …
Finally, in the "Add Command" dialogue-box, select the "Help" category in the left-hand pane and scroll down the right-hand pane until you see the "F1 Help" button, select that and click OK …
You will now have a new button on your toolbar (the blue disk with a ? in it) that will execute F1 Help when you click it:
(The process outlined here, and the images given, are for Visual Studio 2022; however, VS-2019 has a very similar workflow to achieve the same result.)

uncomment and comment button in visual studio 2017

How can I show these buttons please? They are usually there in C# but not in R. I can use of course CTRL+E, U and CTRL+E, C. Thanks!
They are in the Text Editor toolbar.
View --> Toolbars --> Text Editor
Open Tools menu, select Customize. In the dialog that opens, select the Commands tab. Select Toolbar radio button and in the dropdown next to it select the toolbar you wish to add the buttons to. Or go to the Toolbars tab and create a new one, select it, then back to Commands tab and select the new toolbar.
Click on Add Command..., select the Edit category and then scroll through the long list of commands until you find "Selection Comment" and Selection Uncomment" and add them to your toolbar.
My new installs or updated versions of VS sometimes seems to not remember my personal preferences, so I've had this same question, as well. The default key commands work, but sometimes the new VS does not show the toolbars that include the comment/uncomment buttons for all the file types in which I want them to show.
To add the buttons, open a file you are not seeing the tabs for, click View => Toolbars, and make sure Text Editor is selected.
Or, right-click on some open tab space at the top of your VS screen, and click "Customize". The resulting window should show plenty of Toolbars in the Toolbars tab. Make sure the "Text Editor" is selected - that's where the comment/uncomment buttons reside.
This should be the case for Visual Studio 2015-2017
For those who are looking for comment and uncomment buttons in visual studio 2019, I am posting here...
You can do it in two ways
Right click on any free space in the Visual Studio toolbar, then select “Text Editor”. comment and uncomment buttons will appear.
Go to view -> toolsbar -> texteditor then you can see comment and uncomment buttons.

Can't move toolbar item into toolbar menu in Visual Studio customization

I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu TOOLS -> Customize -> Commands.
I made a custom menu "MY_MENU" and menu item "Close Project", but for some reason I just can't move the menu item into the menu (see picture). How do I do this?
I believe I had the same problem as the questioner, and managed to solve it, details below.
Note: I use Visual Studio 2015 Professional, but this should apply to later versions as well.
Scenario
I created a new Toolbar FooToolBar, and placed to the toolbars like this:
Goal
To place the "Solution explorer" icon inside the menu.
Problem
Inside the Customize window you can't just drag&drop the item to the menu:
Solution
Inside the Toolbar combobox, a new item appeared, select that:
After this, you will see a new area where you should place the icon you wanted to.
Also, remove the previous icon from the previous, FooToolBar toolbar item.
After doing this, press OK and it will work.
Result
I hope I helped someone. :-)
Warning: After you customize a toolbar or menu, make sure that its check box remains selected in the Customize dialog box. Otherwise, your changes won't persist after you close and reopen Visual Studio.
Adding, removing, or moving a menu on the menu bar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, leave the Menu bar option button selected, leave Menu Bar selected in the list next to that option, and then perform one of the following sets of steps:
Adding, removing, or moving a toolbar
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.
Customizing a menu or a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, choose the option button for the type of element that you want to customize.
In the list for that type of element, choose the menu or toolbar that you want to customize, and then perform one of the following sets of steps:
To add a command, choose the Add Command button.
In the Add Command dialog box, choose an item in the Categories list, choose an item in the Commands list, and then choose the OK button.

Where is the Word Wrap shortcut in Visual Studio 2010?

Where is the word-wrap icon to toggle back and forth in Visual Studio 2010? I want it in the toolbar or have a shortcut for it.
I see the option in the tools dialog box, but I switch back and forth constantly. I shouldn't have to dig through deep options to toggle this option on and off. Most editors have this option, but for some crazy reason, I can't find it in Visual Studio here...
Any help would be greatly appreciated. I can't find a solution online, and word wrap isn't even showing up in the program's help menu.
You can add the word wrap to any toolbar or menu via the Customize functionality in Visual Studio. You need to use the Edit > Toggle Word Wrap command. Here's how you can add it to a new toolbar.
Right-click the toolbar and click Customize in the menu.
In the Customize dialog click on the new button to create a new toolbar.
Give the toolbar a name and click OK.
Click on the Commands tab and click on the Toolbar radio button, then select the toolbar you just named.
Click on the Add Command button.
The Add Command dialog will appear and select the Edit selection in the Categories list box. Then select the Toggle Word Wrap command in the Commands List Box. Click OK to close the dialog.
In the default keyboard mapping scheme the Edit.ToggleWordWrap command has the shortcut Ctrl+E, Crtl+W predefined for the Text Editor.

Resources