Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I like to keep this option turned off (especially when working with a big project), but it's useful to be able to find the file in the tree now and then. I found a way to do this <a href="http://weblogs.asp.net/kdente/archive/2008/04/30/locating-the-active-item-in-solution-explorer.aspx" rel="nofollow noreferrer">here</a>.</p> <p>I hope I'm not being too verbose here, but here's the guide to making this work that I wrote for my work's wiki:</p> <ol> <li>Go to Tools->Macros->Macro Explorer.</li> <li>In the Macro Explorer tree that comes up, right-click MyMacros, and then New Module....</li> <li>Call the new module SyncItem (if you want).</li> <li>Right-click the new module, then Edit.</li> <li>Paste this into the code window. (I don't know or care if the Imports lines are necessary; they're just there by default.) </li> </ol> <p>code:</p> <pre><code>Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Public Module SyncItem Sub SyncSolutionExplorer() DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer") DTE.ExecuteCommand("View.TrackActivityinSolutionExplorer") End Sub End Module </code></pre> <p>The macro is most useful if you bind it to a keystroke. Here's how to do that:</p> <ol> <li>Go to Tools->Options, then select Environment->Keyboard.</li> <li>Find the new macro in the list (start typing "syncitem" or similar in the search box).</li> <li>I choose <kbd>Alt</kbd>-<kbd>Shift</kbd>-<kbd>T</kbd> (which this dialog box likes to call <kbd>Shift</kbd>-<kbd>Alt</kbd>-<kbd>T</kbd>) for, um, "Tree," I guess? If you're a fan of <code>Edit.LineTranspose</code>, whatever that is (I think it swaps the current line with the following one), then you might like to pick a different shortcut. </li> </ol>
    singulars
    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