[request] Smart search and replace plug-in

It would be very nice to be able to do a search and replace that would be case-sensitive yet replace several versions of the same string.

Let's say I have the following code

public void setValue(int value)
{
if (value < 0)
{
this.value = DEFAULT_VALUE;
}
else
{
this.value = value;
}
}


Now let's say I want to rename the method, parameters, etc. from value to cost. Now I need to do 3 search and replaces

value -> cost
Value -> Cost
VALUE -> COST

I find myself doing this kind of thing a lot, and it would be nice if the search and replace had an option that allowed me to do this in one search/replace action instead of 3. A plugin that does this would be very useful to many people I think.

2 comments

Ilya wrote:

It would be very nice to be able to do a search and replace that
would be case-sensitive yet replace several versions of the same
string.


Already there: Replace -> Preserve Case

0

That's very cool that it's already there for Aurora, thanks for pointing it out. But I think it would still be nice to have it as a plug-in for Ariadna, as not everyone is using Aurora.

0

Please sign in to leave a comment.