xxxxxxxxxx
Open the Command Palette via ⇧ + ⌘ + P and type shell command to find the Shell Command:
Use the Uninstall 'code' command in the PATH command before the "Install 'code' command in PATH" command.
xxxxxxxxxx
Open the visual studio press : ⌘(command) + ⇧(shift) + P
and type "shell command" to find the Shell Command
and press enter