How to link ctrl + 1 to select the first tab?

How to link ctrl + 1 to select the first tab in Visual Studio 2010?

If you don't know what I mean, try opening several tabs in Google Chrome and try ctrl + 1,2,3 to switch between them.

I also have ReSharper - if that helps.

+5
source share
3 answers

Explore the Visual Studio extension Powerivity Tool to increase productivity , it already has such tab navigation.

  • Activate a special regular tab with Ctrl + Alt + Num Pad 1 to 0
  • Activate specific anchor tab Ctrl + Num Pad 1 to 0

http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/

+4

ReSharper. , Ctrl + Shift + 1 ( 2, 3 ..), ReSharper. , Ctrl + 1 (2, 3 ..), . .

0

, , , .

( WFA) , : tab0ToolStripMenuItem ect.

I set the visibility property of the menu item False, and each menu item is ShortcutKeys, for example Ctrl + 1

Then hover click events to:

private void tab0ToolStripMenuItem_Click(object sender, EventArgs e)
{
    this.tabControl1.SelectedIndex = 0;
}

private void tab1ToolStripMenuItem_Click(object sender, EventArgs e)
{
    this.tabControl1.SelectedIndex = 1;
}

private void tab2ToolStripMenuItem_Click(object sender, EventArgs e)
{
    this.tabControl1.SelectedIndex = 2;
}

private void tab3ToolStripMenuItem_Click(object sender, EventArgs e)
{
    this.tabControl1.SelectedIndex = 3;
}

This is probably bad and new to this, but it works, I hope this helps you or anyone else in this matter.

-1
source

All Articles