I want to create a new python file by using:
code filename.py
But I get:
~ % code file.py zsh: command not found: code
I learned that I could not run a program from the command-line with: python filename.py zsh: command not found: python
I have to use python3 filename.py
Is there a similar solution here?
CodePudding user response:
You can run VS Code from the terminal by typing 'code' after adding it to the path: