
The Python project has the following layout: project |- mathlib | |- _init_.py | |- compute.py |- test_compute.pyĪnd the contents of compute.py and test_compute.py are:Ĭompute.py def inc(value: int) -> int: """Return the number increased by one.""" return value + 1 def dec(value: int) -> int: """Return the number decreased by one.""" return value - 1 This tutorial uses a simple Python project to demonstrates the VS Code setup for Python development on Windows 10, Windows Subsystem for Linux, remote Linux, and Raspbian on Raspberry Pi. Besides, VS Code has tremendous documents. Hopefully, this tutorial could help people who want to use the VS Code for Python development. This article is a brief tutorial of the VS Code setup for Python developments - the setup I use daily. With the remote development extension, I can now use the VS Code for my daily work and open source projects in all environments. With the activity enhancement made by Microsoft and the community, VS Code has numerous extensions to satisfy different development needs. Visual Studio Code (VS Code) has been my favorite editor for a few years. You could also try Ctrl + Shift + to display the command palette while you program.Setting Up Python Development Environments with Visual Studio Code Some of the most useful ones are Shift + Alt + Up and Shift + Alt + Down P, which enable you to copy and paste single lines of code. This will increase your efficiency and aid you in your journey to mastery. There are some essential keyboard shortcuts for Visual Studio Code you should learn.

Swipe through the contents displayed on your screen and modify them to your taste.

You can also open settings by clicking on the bottom Icon on the vertical panel to the left of your screen and clicking on Settings once a list opens.įollow this up by clicking on Commonly Used, which will be the first item contained in a vertical list slightly to the left of your VS Code menu. For now, let us stick to the basics.Ĭlick on Settings in the second open tab on your VS Code. The better you get as a programmer, the more you will be able to customize the settings. The developers have taken their time to collate the most frequently used settings to help you enjoy the benefits of VS Code.
