I
I
ila109652017-04-13 13:06:12
PHP
ila10965, 2017-04-13 13:06:12

PhpStorm formats hyphens in lines, how to remove them?

And specifically, it inserts spaces before and after the hyphen.
Then the headers do not work (inserted from php) and there are problems with html.
For example this

<main class="site-content">
он превращает иногда в 
<main class="site - content">

When and why he does this, I don’t understand, if you format the code manually - with a short key, then everything is ok.
But a couple of times I open it and find these fucking spaces before and after the hyphen.
Twice I already broke everything, the first time I was looking for a long time what was the matter.
How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-04-13
@karminski

By default, PHPStorm does not exactly do this. Try resetting your settings and check again. I think that your formatting is corrupted somewhere at another stage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question