In vscode click on the extension icon on the left that looks like building blocks. Then type in definition and this should be one of the first shown. Click, install, enjoy.