N
N
NubasLol2021-04-22 15:59:50
phpstorm
NubasLol, 2021-04-22 15:59:50

How can I clear unused imports when saving?

How can I clear unused imports when saving?

Well, or after pressing the combination ctrl + alt + l

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-04-22
@NubasLol

Once with ctrl+alt+l, check the box to optimize imports, and then just reformat by alt-shift-f (or whatever combination you have, I have a non-standard layout).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question