Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do a Find in Current Namespace in Visual Studio?

Want to be able to do a Find but contain my results to the current namespace the current opened file is in. Like "Current Project" but "Current Namespace". Is there a plugin or tool that can do this?

like image 692
CmdrTallen Avatar asked Nov 08 '13 22:11

CmdrTallen


1 Answers

You can always use a regex :

namespace my_namespace(.*\n)*.*my_search 

That's kind of an ugly solution, since it will select everything between namespace keyword and you search. But that's still useful. You can adapt it and change capture groups in order to be able to use it for replacements.

like image 182
OlivierH Avatar answered Oct 24 '22 11:10

OlivierH