S
S
stainer2021-09-16 17:20:23
git
stainer, 2021-09-16 17:20:23

Where do the empty tabs come from with any change to the file?

Good afternoon, I work in phpstorm + git, at the slightest change in the file, git sees some tabs throughout the document.
6143529fee6a2698382771.png
Those. opened the file -> added a space -> such marks appeared throughout the file. It's like they're automatically set.

How to get rid of it? And then these tabulations get out in a commit.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kuznetsov, 2021-09-17
@stainer

On your screen, I see the opposite. They do not appear, but rather disappear. And not tabs, but spaces.
By default, JetBrains editors only remove trailing spaces from modified lines. Check it in your editor settings here Editor / General / On Save
61441ce3441d5609665470.png
But, for good, you need to fix these jambs in the code everywhere.

D
Dmitry Gordinskiy, 2021-09-16
@DmitriyGordinskiy

So maybe they really are there?
When saving changes to files, Storm removes extra tabs and spaces at the end of lines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question