Suggestion - searching source for constants. #17334
Labels
*extension-candidate
Issue identified as good extension implementation
feature-request
Request for new features or functionality
Milestone
Please consider adding an ability to search all files for constants (for whatever language we're using). Currently Visual Studio (nor VS Code) have this.
The goal here is to:
This is a gap in the tools, but would be very helpful especially for large legacy solutions where lots of hard coding may have crept in.
We can use Find in Files but this is crude and not able to distinguish true constants in the language from comments or identifier names.
e.g. find all constants "TestUser" would find all ocurrences of that string (but not var TestUser = ... and so on).
Under the hood a constant (in the language like say C#) is more or less a reference to something and so I suppose the Roslyn code could do this.
Thanks
The text was updated successfully, but these errors were encountered: