If you have installed Microsoft Visual Studio Code on your Mac device and when you try to open it from zsh shell in your terminal and you get error: zsh: command not found: code the reason is that you have not set the PATH for VS Code in your zsh profile.
- Open Zshrc profile file using - nano ~/.zshrc
- Now add the below line at the file,
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
- Now exit Nano, by pressing command + X and save changes.
- Apply the changes by tying source ~/.zshrc
- Now you should be able to open vs code using Zsh Shell in Mac Terminal.
❗️ Make sure that the Visual Studio Code.app is available on Applications directory or use the path where it resides.
- How to make zsh as the default shell on Ubuntu
- Fix zsh: permission denied: script.sh
- Fix for zsh: command not found: brew
- Ubuntu zsh: command not found: nano
- zsh: exec format error eclipse M1 Mac
- Resolve - zsh: command not found: code
- Fix - zsh: command not found: conda [macOS]
- zsh: command not found [fix] macOS
- Country ISO Codes List - Java
- SQLite with Android Easy to Understand Tutorial that covers Select, Insert, Update and Delete - Android
- Amp Hello World Example - AMP
- Android : Exception raised during rendering: action_bar API 22 - Android
- 3 Python program to add two numbers - Python
- How to install powershell on macOS - Powershell
- Remove ActionBar from Activity that extends appcompat-v7 - Android
- The service instance - SharePoint