A
A
Andrey2020-06-02 13:00:45
phpstorm
Andrey, 2020-06-02 13:00:45

How to change the class import format in phpstorm so that there is not one class per line?

How to change the class import format in phpstorm so that there is not one class per line?

<?php
namespace holiday;

use db;
use h;
use Location;


I want the automatic formatting to have classes in one line, and not to scatter them one by one in a line.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Komarov, 2020-06-02
@maNULL

Monsieur knows a lot ...
Get used to writing correctly! PSR is not from no ** th do invented.
Ask yourself, what will the code look like when the imports are "more real"?

use Vendor\Package\{ClassA as A, ClassB, ClassC as C};
use Vendor\Package\SomeNamespace\ClassD as D;
use Vendor\Package\AnotherNamespace\ClassE as E;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question