Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Find references - filters

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
blq Posted - Sep 30 2008 : 12:06:18 PM
Many times when I've used the "Find References" functionality I've specifically been interested in "where is the object assigned to?"
It would be great to be able to filter (or sort) the returned references on a criteria like this.

Other cases I could see use for are:
- where is the object constructed?
- where is the object .Disposed of? (C#)
- where is a just the .get (or the .set) part of a property referenced?

// Fredrik
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 09 2008 : 07:02:29 AM
To delete the originating file just move to the parent node, which should be the file, and press Delete, or use the right click menu. This deletes the parent node and all of its children from the Find References Results List.
blq Posted - Oct 09 2008 : 03:25:25 AM
ah! Kindof assumed delete was a real delete, I've been looking for "exclude" :)
Spinning on this; When there's a lot of hits it would perhaps be nice to be able to click an individual hit and say "delete/exclude originating file" or "delete/exclude originating project".
accord Posted - Oct 08 2008 : 2:42:24 PM
We are working on find references to search active project before other solution projects during find refs/rename

case=9285

This is not the same what you suggested, but users usually would like to limit the search to get the results faster. So this way you will get the results faster in most of the cases.

>and perhaps be able to exclude certain files etc when browsing the result (similar to how you can collapse the listing now).
I may misunderstood you, but you can "exclude" files when browsing the results by right clicking on the file name and then selecting "Delete". (This will not delete the source, only hide the file in the list.)
blq Posted - Oct 08 2008 : 07:15:40 AM
Great to hear you're working in this direction. I certainly understand the difficulty of deducing all cases. Personally, I wouldn't be upset if the match isn't 100%, after all its a tool to dig the code not a compiler.
Another filtering idea for find-ref would be to be able to only run it on a specific subset of the current solution, i.e specific projects and perhaps be able to exclude certain files etc when browsing the result (similar to how you can collapse the listing now).
feline Posted - Sep 30 2008 : 2:49:27 PM
If you look in the Find References Results list, and at your source code (assuming you have highlight references turned on) then places where the symbol is assigned to are highlighted in a different colour, so you can pick these out visually.

You can also use CTRL-F in the Find References Results window to search the result list.

Some of these criteria though, at least for C++ and probably for C#, are very hard. Look at copy constructors, as soon as you consider these then working out when the object is constructed is not quite so simple. Function calls returning an object instance is another "fun" area.
accord Posted - Sep 30 2008 : 2:19:45 PM
We are planning to introduce some form of filtering at some point:

case=2867

I have put a note on the case about your ideas.

You can already see the variable assignments because they have a different icon, but sure, you cannot filter them yet.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000