Tool to find code in all projects in a vb.net solution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If anyone is interested, I have a tool that will allow a develope to find all instances of selected text across all projects in a VB.NET solution. It is written as a VB.NET windows application and is accessible from the Tools menu. It is particularly useful in cases where There are multiple projects and you can't find where a variable is being used or set. This gets around the limitation in the search feature of the maximum breadth of the search being only up to the current project level

Ji
 
You can already do this in VSIDE.2003 so why right a tool.

Jim said:
If anyone is interested, I have a tool that will allow a develope to find
all instances of selected text across all projects in a VB.NET solution. It
is written as a VB.NET windows application and is accessible from the Tools
menu. It is particularly useful in cases where There are multiple projects
and you can't find where a variable is being used or set. This gets around
the limitation in the search feature of the maximum breadth of the search
being only up to the current project level.
 
Hi Jim,

Form the main toolbar you will see the find in files with a textbox next to
it, just click on the toolbar next to textbox, now the Find in Files dialog
will be loaded.

Now in the Find what section type your variable name and in the Look in you
get select your solution or browse by click on the button with 3 dots and
select folders and subfolders, finally press the Find button, now a list
will be show in a window called Find in Results which will list every place
where the variable was found, you can then just double click and it will
jump to the source,

Please also note you can use this for 'Replace' as well, to do this is
similar but you press the 'Replace' button in the Find in Files dialog.

I hope this helps,

Thanks,
 
Use "Find in Files" (Ctl+Shift+F). From the "Look in" dropdown choose "Entire Solution"
 
Thanks again. That is a much better tool than the one I wrote. It was a fun project, finding all the references, but I did not include the ability to jump back into my code and this tool does it.

BTW - I have another problem that I have not been able to find in the doc. I want to do a binary search on a column in a dataset that has been previously loaded. It seems that the binary search method only works for arrays. There has to be an easy way. Any clues

Your help is greatly appreciated
Ji
 
I don't totally understand what you are trying to do with
the binary search, do just want an quick root to your
data, if so you should use the Contains or Find method of
the Rows object but this will search through all the
columns, there is no way you can say search in this
column, if you want to do this then I would change the
code so it contains one column or hold an arraylist which
points to the datatable recordset row and in the arraylist
use the IndexOf method which will search through arraylist
for column value and return the index of the item in the
arraylist, you then can use this to find your data in the
DataTable.

Thanks,
-----Original Message-----
Thanks again. That is a much better tool than the one I
wrote. It was a fun project, finding all the references,
but I did not include the ability to jump back into my
code and this tool does it.
BTW - I have another problem that I have not been able to
find in the doc. I want to do a binary search on a column
in a dataset that has been previously loaded. It seems
that the binary search method only works for arrays.
There has to be an easy way. Any clues?
 
Thanks again. It is as I suspected. It seems that this would be a good feature. Why should it be necessary to create an separate array When the data is already orgranized in memory and accessible by column? My opinion is that there should be a binary search on a single column that would return the row that is found. It should not be necessary to do further IO

Ji
 
Back
Top