

For example, create a new folder on your Desktop, and name it py_scripts, then try to open the folder on VS Code.

Launch Visual Studio Code, and then open a folder where your Python scripts exist or create a new one.Move the Visual Studio Code application to the Application folder to make it available in the macOS launchpad:.Double-click the downloaded file to extract the archived contents:.If it doesn’t, click the arrow down button and choose the stable VS Code release that matches the operating system installed on your computer: The download page detects your operating system automatically and displays a big button for downloading the latest version of the Python installer on your computer. First, download Visual Studio Code for macOS or Windows from its official website.However, installing VS Code on Windows is straightforward and similar to installing other Windows applications. Let’s get started.ĭue to the essential differences between Windows and macOS, the Windows users need to do minor modifications to install VS Code. This section will cover how to install VS Code on macOS step by step. Let’s dive in! Installing Visual Studio Code In this tutorial, we’ll learn how to install Visual Studio Code and set it up for Python development, as well as how to become more productive with VS Code. Visual Studio Code is a powerful, extensible, and lightweight code editor that has become one of the preferred code editors in the Python community. Go to Preferences -> User Settings and update the setting to Set Up Visual Studio Code in 2022 (The Easy Way) ⌘ + S, configure the following:Ĭhange the default formatter to Black instead of Autopep8. To enable auto-formatting on "Save", i.e. code myfile.txt will open myfile.txt in VS Code.

will open VS Code in the current directory To install the latest version, use Homebrew: brew install -cask visual-studio-codeĪfter that, you can launch VS Code from your terminal: Visual Studio Code is a lightweight code editor with support for many programming languages through extensions Installation
