Sometimes just adding a shell command doesn't work. We need to check if Visual Studio code is available in the Applications folder or not. This was the case for me.
At that moment when you download the VS code, it remains in the "Downloads" folder, and the terminal does not receive it from there. So, I manually moved my VS code to the Applications folder for access from the Terminal.
Step 1: Download the VS code, which will give out the archived folder.
Step 2: Run it, which will give exe a kind of file in the downloads folder.
Step 3: Move it to the Applications folder manually.
Step 4: Open the VS code, "Command + Shift + P" and execute the shell command.
Step 5: Reboot the terminal.
Step 6: Enter the "Code". on the terminal should work now.
Balaji Jul 19 '19 at 3:55 am 2019-07-19 03:55
source share