I have huge list of constants. I want show where this all constants are used in throughout solution. I can check this (using find in solution) one by one but it will take lot of time.
is their any way so I can achieve this very quickly ?
Regards, Sachin
There is a complete list of Visual Studio Shortcuts available here https://msdn.microsoft.com/en-us/library/da5kh0wa.aspx . As already mentioned the default shortcut for go to Edit.FindAllReferences
is Shift
+ F12
.
Also if you rightclick a symbol in your code you can find the available actions in the context menu (+ hotkeys to use them) which may be easier if you are new to Visual Studio, because the list is quite huge.
"Find all references" is the easiest buit-in way to go, but that requires clicking through them one by one. "Find all references" can be accessed using the context menu or (by default) CTRL+K,R.
If you have VS2013 Ultimate and if your constants are in the same project or in the same file/class, you could use CodeMap . Right click on project/file and select "Show on Code Map". Or select Architecture-Generate dependency graph. This will draw you a graphical view of the usage. For example:
You can then filter this Graph by Project/Namespace/Class level.
Also, ReSharper has built-in analyzing features:
也许您可以尝试Alt + F12 [速览定义]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.