0% found this document useful (0 votes)
7 views

Visual Studio Code IDE for Windows

This document provides a step-by-step guide for installing Visual Studio Code (VSC) on Windows and setting it up for Python development. It includes instructions for downloading the software, installing necessary extensions, creating a Python file, and running Python programs. Additionally, it offers tips for managing extensions and selecting Python interpreters within the IDE.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Visual Studio Code IDE for Windows

This document provides a step-by-step guide for installing Visual Studio Code (VSC) on Windows and setting it up for Python development. It includes instructions for downloading the software, installing necessary extensions, creating a Python file, and running Python programs. Additionally, it offers tips for managing extensions and selecting Python interpreters within the IDE.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Visual Studio Code (VSC) Integrated Development Environment (IDE)

- Installation and running python programs on Windows

*See Installing Python instructions (Windows & Mac) notes first

1.Go to the website below to download the program file for your Windows version.

https://code.visualstudio.com/download

Click on the button choice as shown below that represents your current Windows OS. Your
download will start automatically.

2. Run the installer file from your downloads folder. Accept the agreement and press Next > a
few times till you derive at the Setup screen.

At the Setup screen, choose options for the install. I chose all of them.

Press Next > then press Install to start the installation.

When complete, leave Launch Visual Studio Code checked and click Finish to open VSC.

3. As you open up your program you should see a Welcome, ‘Get Started’ or Release Notes
screen.

© Copyright 2024 by P.E.P. 1


Click on Extensions icon on left side

To install Python as an extension for full operability of python usage, type python in the search
text field under the EXTENSIONS: MARKETPLACE area presented. Search for the Python for
VSCode extension, then click on the install button. The install should be super quick, so no
waiting!

*Note for some extension installs it may be wise to close out of VSC and reopen the IDE to
make sure your newest extensions are loaded and present to work with if need be.

4. Next, install the Python Extension Pack as shown below.

Close out of your extension window.

5. Click on the Explorer icon located on the upper left of your IDE.

© Copyright 2024 by P.E.P. 2


Click on the Open Folder button (alternatively you can choose from your menu, File then Open
Folder...).

Select or create the folder you wish to work with, then click on Add to finish your setup.

6. Creating a Python file.

To create a new file, click on New File...(or from your menu File > New File...) as shown below
in your screen area.

Type in a file name and include the python extension(.py) so it knows what type of app to run
when executing your code. Hit enter to save the file to your desired folder then the Create File
button which is open the file in the editor.

Example follows.

© Copyright 2024 by P.E.P. 3


Alternatively you can always click on your chosen folder name your working with (mine is
called PYTHONPROGRAMS) then click on the icon to the right of your folder name, where
it says New File…

Type in some source code in the editor to your right that appears in the IDE. Example follows.

print("hello world")

Example of typing code in the editor.

Save your file and click on the Run icon at the top right of your editor to run your python
program as shown below.

Notice at the lower part of your IDE there should appear a Python "Interpreter" version
representing the latest Python version available in your system as shown below.

Note you can always select an alternative interpreter version , by going to your Command Palette
( View > Command Palette... ) and typing in Select Interpreter.

Snapshot follows.

© Copyright 2024 by P.E.P. 4


*You now have a nice Editor for python scripts ready to evoke any commands, etc!

References

Windows python 3 help for Selecting a Python Interpreter for VS Code per their docs can be
found out here => https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites

https://code.visualstudio.com/docs/python/python-tutorial

© Copyright 2024 by P.E.P. 5

You might also like