About the intelligent code completion problem of vscode + vue + ts

44 views Asked by At

As shown in the figure below, a color prop is defined in the component and the type is marked. When the component is referenced elsewhere, vscode cannot intelligently prompt the value of this property, it can only be typed by hand. When typing a letter r in the figure below, shouldn’t it prompt red? Please advise how to set vscode to have intelligent code completion prompts. The Volar plugin has been installed, what configuration needs to be done? image here

The ts version of Volar has been installed and takeover mode has been enabled.

0

There are 0 answers