Re: Multiple string constants into const string

Hello Søren,

Please use the "Introduce Constant" refactoring. It has an option "Replace
all occurrencess" to replace multiple instances of the same striing.

When I write code I use strings literals I write them directly in the
code and then later on translate them in to a const string.

As I recall, earlier versions could help me with this and even suggest
that multiple instances of the same string constant will reference to
the introduced const variable.

Has this been removed ? If not, could some one show me how?

I use v5.1


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


Please sign in to leave a comment.