Summary
In macOS 12.3 beta Apple removed support for Python 2. Additionally Python 3 no longer comes bundled with macOS. This causes the code command to not work anymore.
- https://www.macrumors.com/2022/01/28/apple-removing-python-2-in-macos-12-3/
- https://www.idownloadblog.com/2022/01/28/python-macos-monterey-no-more/
Error message:
1
command not found: code
Solution:
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.