[Qt-creator] Name validation in rename symbol

Christian Kandeler christian.kandeler at qt.io
Wed Apr 5 10:14:37 CEST 2023


On 4/4/23 08:14, Volodymyr Zibarov wrote:
> The new feature in Qt Creator 10 is name validation during renaming a 
> symbol.
>
> The old behavior without the validation made possible to make 
> refactoring tricks, like move variable into a struct, or replace 
> public member usage with a get method. For example:
>
> name -> myStruct.name
>
> name -> getName()
>
> Let's add an option to disable name validation
>
That would be a server-side feature, and I don't think it will get 
implemented.

A possible workflow for such tricks is to first properly rename the 
symbol to something unique and then use the textual search/replace (and 
it really *is* a textual replace, as the new content is not really a 
symbol).


Christian



More information about the Qt-creator mailing list