Did you use the Install ‘code’ command in PATH option?
If that doesn’t work, use the alternative:
cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF
And check your .bash_profile to see if the change is there.
Use echo $PATH to see if vscode is there.
Or just test it. Start ‘code’ anywhere but from its bin directory.