If you want to add it permanently:
Add this to your ~/.bash_profile, or to ~/.zshrc if you are running macOS v10.15 (Catalina) or later.
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
Source: https://code.visualstudio.com/docs/setup/mac