How can I open python file from the terminal of Ubuntu?
I mean, how can I open it and modify it on Visual Studio Code, instead of running it.
I tried the command:
python3 file.pyBut that just runs the program.
1 Answer
The Visual Studio Code executable is called code, simply call it with your python file.
code file.pyKeep in mind that vscode is meant for managing whole projects, not just a single file.