Click File -> Open... or File -> Open Workspace... menu item in the visual studio code top menu bar.Create a folder in your OS, this folder will be treated as the workspace for your visual studio code python project.How To Create Python Script File In Visual Studio Code. You can also implement the above process by clicking the visual studio code top menu bar View -> Command Palette… menu item, then input Python: Select Interpreter and click it in the drop-down list.ģ.You can select one to run the python script later. When you click the above option, it will popup the Command Palette drop-down list, and display all the python interpreters installed on your OS.If you had used one python environment, you can click it to change to use another python environment. You can select which python interpreter to use by clicking the select python environment option on the bottom left corner of the visual studio code status bar.Select Installed Python Interpreter In Visual Studio Code. But before you can start to make python coding in visual studio code, you need to make sure you have installed the python interpreter correctly on your OS.Ģ.After installing the visual studio code python extension, you need to restart the visual studio code to make it effective.
#Coding python in visual studio code install#
You can also install the visual studio code python extension by clicking the Help -> Welcome menu item in the top menu bar, then click the Python link at the Customize -> Tools and languages area at the welcome page right side.Input the keyword python in the search box, and click the Install button for the Microsoft-created python extension to install it.It will list all the installed and recommend extensions in the visual studio code left side EXTENSIONS panel. Open visual studio code, click View -> Extensions menu item at the top menu bar.How To Install Visual Studio Code Python Extension.