Find and Replace from Mapping

Answered

Hi,

i want to format code from a whole project and replace different statements in all Files like:

False => false

FALSE => false

If => if

IF => if

I want to create a map and automate the replacement for all statements.

After this is done i want to have a replacement with another condition. For example: if finding is between brackets, replace differently, something like:

[* False *] => [* FALSE *]

[* false *] => [* FALSE *]

Is something like an automated replacement possible?

0
1 comment
Avatar
Yaroslav Bedrov

Hello,

Currently it's not possible. Feel  free to create feature request on YouTrack: http://youtrack.jetbrains.com/issues/IDEA.

As a workaround you may create a macro that will run several Find/Replace actions.

0

Please sign in to leave a comment.