Updated: May 15
Please check this link for installing vscode.
Vscode configuration optimization
Exclude the large folder from the file watcher to reduce the high usage of CPU. Click CTRL+comma to add patterns in the file watcher settings.
Next step we need to Install the below Vscode extensions
1. PHP Intelephense
2. Disable Vscode default extension PHP Language Features. We can find this extension by search @builtin php.
3. Enable the Vscode PHP default extension PHP Language Basics
Open Magento folder in the Vscode, open any one of the PHP files and we can see the options like below.
I hope it helps. If you have any doubts related to this blog post, please mention in the comment section.