Adobe Brackets: how can I find/replace multiple lines?

13.3k views Asked by At

is there a way to find multiple lines within a project e.g.

<li>ABC</li>
<li>LKJ</li>

and replace it with: e.g.

<li>...</li>
<li>ABC</li>
<li>...</li>
<li>...</li>
<li>LKJ</li>

?

Thank you!

3

There are 3 answers

0
PseudoPsyche On
  1. Find > Replace In Files
  2. Choose files
  3. Set search and replace text
  4. Review changes
  5. Replace

http://blog.brackets.io/2014/06/27/brackets-0-41-release-replace-across-files/

0
Praveen Thirumurugan On

Brackets has more powerful shortcuts to help replace any matched string.

Ctrl + H can be used to Find and Replace Strings without Regex

0
theJoi On

Brackets has the ability to use regex commands. There's alittle button with [.*]next the search field . Click that to activate it. So to do what you want your search field would be something like:

(<li>ABC</li>)(<li>LKJ</li>)

And your replace would be:

<li>...</li>$1<li>...</li><li>...</li>$2