- Edited
Thanks! I tried ctrl
+ .
, I did not know as it wasn't documented.
Perhaps add in the word "Quick Fix" at https://docs.devsense.com/en/vscode/editor/auto-import and it's default shortcut?
My issue was the first case:
- Let's say I copied some code that uses
Artisan
facade - But
use Illuminate\Support\Facades\Artisan;
has not been added yet - If I trigger
PHP Namespace Resolver
, it will automatically add inuse Illuminate\Support\Facades\Artisan;
without any dialog/selection as there is only 1Artisan.php
in the whole project - If there are more than 1
Artisan.php
, only then will a selection dialog pops up
Small thing, but makes quite a different when there are several classes to add. Thank you.