In PhpStorm 2016.2 I have a new project that has been inherited and [badly] needs updating.
There are many pages each with opening line like so (example):
$dataBase = new DbObj();
Is there a way of searching and/or replacing multiline text in path in PhpStorm 2016.2?
There is no easy to use multi-line search or replace across multiple files (
Find/Replace in Path functionality) unfortunately.
Right now you have to use Regex option for that -- that's the only option that works.
Watch these tickets (star/vote/comment) to get notified on any progress in this regard.
Manually making regex-compatible text can be quite problematic .. therefore you might use this few-steps trick:
Replace in Path...dialog -- with Regex option pre-selected it should automatically escape your selection to be regex-compatible
Replace in Path...dialog -- it will have your initial text already filled in and regex compatible
On related note: http://stackoverflow.com/a/38672886/783119