Solution:- Execute gulp trust-dev-cert
Your web part will not appear in the toolbox. Please make sure “gulp serve” is running in a web part project. Please refresh the page once “gulp serve” is running.
Previous Post: Visual Studio Code Key Shortcuts