I
I
Ivan Ivanov2020-11-06 12:24:20
phpstorm
Ivan Ivanov, 2020-11-06 12:24:20

How to cancel hyphens when formatting code (not hyphens on the screen)?

I did not include code wrapping, but if you format html using Ctrl + Alt + L, then the markup is transferred taking into account the page width: along the right border - it's like 120 characters.
Is there any way to cancel?

Example:

was

<span class="flag-icon flag-icon-<?= $user->country_code ?>"></span> <span class="text-warning"><?= $user->login ?></span><br>

became
<span class="flag-icon flag-icon-<?= $user->country_code ?>"></span> <span
            class="text-warning"><?= $user->login ?></span><br>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2020-11-06
@orsha-ivanov

In the codestyle settings. file | settings | editor | Code Style
You can define the Hard wrap at option for all languages ​​or for specific ones.

S
sl0, 2020-11-06
@sl0

There exactly the transfer occurs, and not the display? Line numbers appear?
5fa5187cb9793814191923.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question