Introduction to Visual Studio Code
This lesson introduces Visual Studio Code, a professional, open source and cross platform code editor. You’ll see how to get VS Code for your Operating System and the powerful features that make it a popular editor.
00:00Hi! I’m Austin Cepalia with realpython.com,and today I’ll be showing you how to use Microsoft Visual Studio Code for Pythondevelopment. I do have to warn you though,by the time you’re done with this course,you might not want to use anything else.
00:16Visual Studio Code, or VS Code for short, is an open-source,extensible, lightweight, and cross-platform code editor from Microsoft.That’s right.This is a professional code editor that is open-source and extensible.
00:31That means that you can download the source code,modify it to fit your needs, and even submitpull requests to help further development of the program.If you had told anyone 10 years agothat Microsoft would make a cross-platform open-source editor,they would have called you crazy.
00:47But VS Code is part of Microsoft’s push into open-source,and I think it’s safe to say that the developer community has responded quitewell. In this series,you’ll learn how to configure VS Code for Python development,start and edit Python programs, run unit tests, debug your program,and finally, work with source code management, like GitHub.
01:11You can download VS Code from code.visualstudio.com.It’s available for Mac, Windows, and Linux,and the editor is updated monthly with new features and bug fixes.
01:23I’ll be using a Mac for demonstration purposes,but you should be able to follow along regardless of what operating systemyou’re running.Also, make sure you download Visual Studio Code and not Visual Studio.
01:35If you’re at this website, you’re in the wrong place.Visual Studio is Microsoft’s much largerIDE that’s really popular with .NET development.Visual Studio Code is like its younger and more flexible little brother,and it works great with Python. In the next video,we’ll take a tour of Visual Studio and write our first Python program.

Doug FarrellRP Team onJuly 20, 2019
Austin,
I’m one of the writers on the RealPython team and I just wanted to say thanks so much for putting this together! Your presentation is really great, and very helpful to me. I’ve been developing with PyCharm (which is great), but have a need to switch over to using VS Code, and this was just what I needed to get started!
Again, thanks so much!Doug

Austin CepaliaRP Team onJuly 22, 2019
Thanks for the kind words Doug, I’m glad the course helped you!
Grouchy Old Fart onOct. 11, 2023
Hi there,
That intellisense thing doesn’t work on my machine. Is there something I have to turn on?
Python 3.12VS Code V1.83.0Windows 10
Narendrakumar Ratibhai Patel onJuly 21, 2024
Please solve this error
File “d:\pythonProject\WorkingWithJSONAndPython\jsonplace.py”, line 2, in <module> import requestsModuleNotFoundError: No module named ‘requests’
I am using python 310 and vscode
Bartosz ZaczyńskiRP Team onJuly 22, 2024
@Narendrakumar Ratibhai Patel To fix this problem, you need to installrequests, which is a seperate library that doesn’t come with Python. You can do so withpip:
$python-mpipinstallrequestsBecome a Member to join the conversation.
Course Contents

