T
T
tereh2020-09-18 11:44:40
phpstorm
tereh, 2020-09-18 11:44:40

How to highlight the entire value between space and brackets?

$isRu = ($_SERVER['HTTP_HOST'] == ru.3d-example.com)

I forgot to put the brackets, I have to spend time highlighting the text to the nearest space. Now I hold down ctrl+shift and use the left arrow to select up to a space. But in this case, the selection is not marked from space to space and not even from dot to dot, but is selected to the nearest dot, then a hyphen, then the letter d, then 3. ctrl + w - reaches the number 3 selects the entire block. How to highlight from nearest space to ru.3d-example.com bracket?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sl0, 2020-09-18
@sl0

Alternatively, install a Vim plugin. It’s convenient to highlight there, and it’s not a problem to put brackets.
But you have to learn the keys of vim.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question