Structural Replace doesn't work as expected
I have a code like this:
params.put("BACKGROUND", "#7B528D");
I would want the result to be:
String BACKGROUND = "BACKGROUND";
params.put(BACKGROUND, "7B528D");
search template:
params.put("$FieldName$", "#$exp$");
replacement template:
String $FieldName$ = "$FieldName$";
params.put($FieldName$, "$exp$");
Unfortunately the result is:
String "BACKGROUND" = ""BACKGROUND"";
htParams.put("BACKGROUND", "");
why?
Is there a way to make this kind of replacement to work?
--
Best regards,
Amigo
Please sign in to leave a comment.
Hi,
The issue with quotes is fixed in 4.5.2
Having "" in replacement result will be fixed in upcoming 4.5.3 (next week)
Amigo wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"