You should always be making components from within Unity, not within VS.
VS needs to be properly integrated. This may help you with VS integration problems:
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: No suggestions in Vscode