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.
- Ubuntu zsh: command not found: nano
- Setting up Zsh Syntax Highlighting
- Fix for zsh: command not found: brew
- Fix - zsh: command not found: conda [macOS]
- Resolve - zsh: command not found: code
- How to make zsh as the default shell on Ubuntu
- zsh: exec format error eclipse M1 Mac
- [fix] zsh: illegal hardware instruction python TensorFlow M1/M2 Mac
- Fix zsh: permission denied: script.sh
- zsh: command not found [fix] macOS
- Create SharePoint Site Collection with new Content database in existing web application - SharePoint
- The Android Virtual Device is currently running in an emulator and cannot be deleted - Android
- Change battery percentage in Android Emulator - Android
- How to add borders to tkinter label text - Python
- List of jars required for Struts2 project - Java
- bash: netstat: command not found - Bash
- Top 3 Awesome Text Editors developers prefer at workplace - Sublime
- How to check zsh installed version using terminal - MacOS