L
L
Larisa2017-04-26 14:37:48
phpstorm
Larisa, 2017-04-26 14:37:48

Is it possible to edit multi-line code?

When I was working with the HomeSite editor, I was pleased with the wonderful ability to replace multi-line code.
for example

<li class="menu__item">
     <a href="#">О компании</a>
 </li>
replaced by
<li class="menu__item">
      <span>Disabled</span>
 </li>
<li class="menu__item">
     <a href="#">Контакты</a>
</li>

Does Web(PHP)Storm have such an implementation ?
CTRL + R is an inline autocorrect and does not capture the problem (

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Bukharev, 2017-04-26
@evgenybuckharev

Alternatively, use regular expression replacement

S
sim3x, 2017-04-26
@sim3x

Better
https://emmet.io/
.menu__item>(span{Disabled}+a{Контакты})

K
Konstantin Kitmanov, 2017-04-26
@k12th

Ctrl + R, on the right in the search field there is an icon like "enter key".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question