Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After a couple of hours of searching I found a solution how to switch between open documents using <kbd>CTRL</kbd>+<kbd>TAB</kbd> which move from left to right and <kbd>SHIFT</kbd>+ <kbd>CTRL</kbd>+ <kbd>TAB</kbd> to go right to left. </p> <p>In short you need to copy and paste this macro:</p> <pre><code>Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Public Module TabCtrl Public Sub TabForward() Dim i As Integer Dim activateNext As Boolean = False For i = 1 To DTE.Windows.Count If DTE.Windows().Item(i).Kind = "Document" Then If activateNext Then DTE.Windows().Item(i).Activate() GoTo done End If If DTE.Windows().Item(i) Is DTE.ActiveWindow Then activateNext = True End If End If Next ' Was the last window... go back to the first If activateNext Then For i = 1 To DTE.Windows.Count If DTE.Windows().Item(i).Kind = "Document" Then DTE.Windows().Item(i).Activate() GoTo done End If Next End If done: End Sub Public Sub TabBackward() Dim i As Integer Dim activateNext As Boolean = False For i = DTE.Windows.Count To 1 Step -1 If DTE.Windows().Item(i).Kind = "Document" Then If activateNext Then DTE.Windows().Item(i).Activate() GoTo done End If If DTE.Windows().Item(i) Is DTE.ActiveWindow Then activateNext = True End If End If Next ' Was the first window... go back to the last If activateNext Then For i = DTE.Windows.Count To 1 Step -1 If DTE.Windows().Item(i).Kind = "Document" Then DTE.Windows().Item(i).Activate() GoTo done End If Next End If done: End Sub End Module </code></pre> <p>The macro comes from: www.mrspeaker.net/2006/10/12/tab-un-stupidifier/</p> <p>If you never add a macro to Visual Studio there is a very useful link how to <a href="http://www.switchonthecode.com/tutorials/how-to-configure-and-use-visual-studio-macros" rel="nofollow noreferrer">do it</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload