[DevExpress Support Team: CLONED FROM T371840: The "Declare Constant" refactoring does not replace all occurrences in a file]
Thanks. BTW, the behaviour is similar with the "Name can be simplifed" refactoring for types/namespaces too. Only the specific occurrence is replaced.
Models.ReportModel pReport = new Models.ReportModel();
The refactoring replaces the "Models." only on the LHS while the RHS is left as is.
Hi Senthil,
The "Name can be simplified" refactoring is a part of Visual Studio, so we cannot change its behavior.
However, CodeRush Classic has the "Remove Type Qualifier (replace all)" refactoring, which is not ported into CodeRush for Roslyn yet.
This task is in our TODO list for future CodeRush for Roslyn releases.
Ahh. Thanks. I got it confused with the coderush one :-)
No problem, Senthil. We will notify you when we port the "Remove Type Qualifier (replace all)" refactoring.
Hi Senthil,
We have implemented the "Remove Type Qualifier" feature with the latest CodeRush for Roslyn 16.1.8 release.
It is available with qualified type reference expressions. There is also "Remove Type Qualifier (replace all)", and a code cleanup rule was added.
Please refer to the what's new list for more details.