Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yusufbouzekri's avatar

Is there no autocomplete for volt components in vscode or is my setup broken?

I have this class in one of volt components, but I didn't get any autocomplete when referencing the chirps variable with $this->chirps nor did vscode show any of the methods associated with the Chirp model like with() and get(). I am wondering if this is normal or I am missing a certain vscode plugin.

if this is the norm then is there a workaround or do people just live with it?

new class extends Component {
    public Collection $chirps;

    public function mount():void 
    {
        $this->chirps = Chirp::with('user')->latest()->get();
    }


}; ?>
0 likes
2 replies
igoralentyev's avatar

Same for me. No autocomplete for Volt and also for regular Blade files.

adiology's avatar

None for me either, I'm kinda annoyed by this. Trying PhpStorm right now.

Please or to participate in this conversation.