Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Opening a file on node selection.

$
0
0

We have an MPF-based custom project system that manages source files and are trying to implement the code file expansion stuff you see in the built-in project systems.  Specifically, when you expand a C# code file, you can see the types and methods contained.  Then, when you select one of those contained classes or methods, the code editor is automatically opened in the provisional tab and focus is placed on the selected class or method.  I'd like to be able to scroll through our custom code-file"sub-nodes" in Solution Explorer, and have the provisional tab automatically updated to show the proper code file and region.  How can I explicitly open a file when our custom node is selected?  I've considered using IVsMonitorSelection but was wondering if there was another more direct way.

Thanks very much in advance.


Kirk Fertitta


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>