What are Snaps? They are self-contained software packages that include the binary all dependencies needed to run the application. Microsoft provide an official Visual Studio Code Snap package on Canonical’s Snapcraft Store. Install Visual Studio Code (Snap Package) Whatever way you choose to install it is up you as you still get the same version of the app, with all of the same features.
In this guide you’ll see two ways of installing Visual Studio Code on Ubuntu 20.04 LTS, using the official Snap package on the Snapcraft store, or by downloading VSCode’s. A rich set of extensions are available for other languages, like C++, C#, Java, Python, PHP, and Go, as well as runtimes like. This popular text editor also has broad language support, including JavaScript, TypeScript, and Node.js. Features like debugging, syntax highlighting, intelligent auto completion, embedded Git control, and even an integrated terminal, are enabled in all builds. Virtually all of VSCode features are available to all users, regardless of the OS they use it on.
The cross-platform support is a big part of this editor’s appeal, as it means developers don’t need to switch tools or learn new UIs when switching between platforms. Visual Studio Code is available for Windows, macOS, and Linux.
In this post I show you how to install VSCode on Ubuntu 20.04 LTS (or above). That's it, we are ready to start writing and running our code in an IDE.Microsoft’s Visual Studio Code is a powerful and popular open source code editor. So now we can just select it and we're ready to go. It's going to give us the option for Python 3.7.3, which is the one that we had installed previously. To do that, we're going to type Control + Shift + P, and then start typing Python, select interpreter, and choose it from the dropdown. We're going to close down the extension and then we're going to open up the command palette. So in order to run Python code and get code suggestions, you must tell VS Code which interpreter to use. Remember, Python is an interpreted language, meaning it processes your source code each time its run, line by line. So make sure that you install the extension if it's not already available. We're only going to use very limited features. But you don't have to worry about all of that for this course. For instance, in the Python extension, we get linting, debugging, code formatting, and much more. What's nice about VS Code is that for each extension, you have a detail screen which tells you about the different features that are included. If we click on the Python extension, we're going to get lots of details about how Python works in Visual Studio Code. This is going to open up the extension pane on the left side, and one of the options is Python. The next thing we want to do to get this ready to work with Python is to go to the customize pane and choose tools and languages. Let's escape it by just clicking on the overlay. The key things that you'll want to work with for this course are the file explorer where you can see all of the files listed, searching across files in case you need to find one with a specific name, managing extensions, which we're going to talk about shortly, and then also finding and running all commands. We can do that by coming to the learn pane and choosing interface overview. For now, let's take a quick look at some of the features of this IDE. From here, we can create a new file, open a folder, or add a workspace folder. Now that the app is launched, we're greeted with the welcome screen. Let's go ahead and launch Visual Studio Code. Let's click next again, and then finally, install. We'll keep everything the same for the defaults, and when it comes to selecting the additional task, I recommend you choose every option, as this will make it easier for you to work with the exercise files. We'll click next again, choose the default location for installation. First, we're going to click on next and make sure you accept the agreement. Now that we've launched the installation flow, let me go ahead and close this browser Window and then we'll walk through the flow. Once it's downloaded, let's click on the executable in order to launch the installation flow.
Once you're here, you want to choose download for Windows. To get started, we'll open up the VS Code webpage.