Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Open file in Solution - please open with context
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wilstark
Junior Member

USA
22 Posts

Posted - Oct 06 2017 :  5:56:23 PM  Show Profile  Reply with Quote
Consider the following scenario:
I have two projects A and B, they share a source file ("a.cs").
One project #define's FOO, the other does not.

When VS opens a file, it knows the project context, and the editor shows #ifdef'd out code as greyed/disabled. While debugging, breakpoints may not be set in such code.

Clearly, a project A and B will have different views of a.cs if there's an #if FOO block.

The project context seems to be determined by which file reference you double-click on in the VS Solution Explorer. Clicking on a.cs in project A will have A's context, for project B will have B's context.

When I use the Open File in Solution dialog (love it!), as of version 2217 I would see two entries for a.cs, each with it's own project context. But selecting either just opens the file with one project context (usually the wrong one for me :-( ). This dialog just seems to be unaware of opening a file with a particular context.

Now in 2235, a.cs shows up only once (one line) with both project A and B listed as the 'project'. So there's no possibility of opening with a desired project context.

Can the Open File in Solution dialog be enhanced to have a separate line for each project (like in 2217) that a file shows up in? And when you open that particular file from that line in the dialog, have the correct context? That would be great!

- Wil

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 08 2017 :  1:57:12 PM  Show Profile  Reply with Quote
Thank you for the clear description, this is a known problem that we are hoping to address relatively soon:

case=103728

The Open File dialog showing one entry for all of the duplicate files, or one entry for each instance of the files is controlled via the setting:

Open File in Solution dialog -> Right Click -> Combine duplicate file entries

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000