Where is the word-wrap icon to toggle back and forth in Visual Studio 2010? I want it in the toolbar or have a shortc开发者_StackOverflow中文版ut 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.
精彩评论