What shortcut keys in PHPStorm to remove Namespaces that are not in use in a Class?

2

What is the shortcut in phpstorm that cleans namespaces that are not in use in a class, I saw in a video lesson the teacher talking about a key combination and automatically cleaned the namespaces use App .... etc, but did not say what they were.

use App\Contracts\UserRepositoryInterface;
use App\Http\Controllers\Controller;
use App\Repositories\UserFacebookRepository;
use Config;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use OAuth;

Below:

use App\Http\Controllers\Controller; 
use Config;

are not in use, how do I remove them by the shortcut keys?

    
asked by anonymous 27.12.2016 / 22:31

1 answer

2

Yes There are keys that are responsible for optimizing your code by removing unused namespaces :

  

There is a difference if the operating system is MAC OS X keys are:

  

Alt + CMD + O

References:

28.12.2016 / 01:13