Running Python Scripts with Code Runner πΒΆ
Installing Code Runner ExtensionΒΆ
Click the extension icon on the left most stripe and type code runner in the search bar. You should see the extension popping up in the first row. Click and install.

Setting up Code RunnerΒΆ
By default, code runner uses its own panel for showing the results after you run your python script. However, itβs better to set it up in a way that it will show the results in the integrated terminal.
Press
ctrl+,to open up the settings panelOn the search bar type
code runner terminalYou should be able to see an option named
Code-runner: Run In TerminalCheck off the option and you are good to go π°

Running Python ScriptsΒΆ
Create and select your python environment (See the instructions here.)
Create a new file via
ctrl+NPress
ctrl+sto save the file and give it a name with.pyextensionWrite down your python code in the file
Press
ctrl+alt+Nto run the code via Code RunnerYou should see your results in the integrated terminal π¬
To run only a selected lines of codes, select the lines you want to run and press
ctrl+alt+N.
