Learn Visual Studio Code with Raspberry Pi
Discover the best tutorials and resources for Microsoft’s development environment.
By **Lucy Hattersley**
Getting started with Visual Studio Code
Microsoft’s **Visual Studio Code** is a modern **text editor** and **IDE** (integrated development environment). Back in 2019, **StackOverflow reported a massive leap in popularity for Visual Studio Code**. It immediately took the IDE number one spot with over 50% of respondents to their annual survey using it (**magpi.cc/so2019**).
Visual Studio Code is available for Raspberry Pi and can be easily installed in Raspberry Pi OS. Click on Menu > Preferences > Recommended Software and choose Programming from the sidebar. Scroll down and place a tick next to Visual Studio Code and click Apply. Open Visual Studio Code (under Programming) and click Help > Introductory Videos.
In these videos, Ornella Altunyan walks you through the user interface and settings, with tips and tricks. Once you’ve done that, click User Guide in the sidebar to start on the documentation.
Visual Studio Code resources
Bookmark these pages and return to them while you code
KEYBOARD SHORT CUTS FOR LINUX
Worth printing out if possible, but certainly keep these keyboard short cuts bookmarked while you run and debug code. ► **magpi.cc/vscodeshortcuts**
AWESOME VSCODE
This GitHub page by Viatsko has a curated list of excellent packages and resources, all placed into handy lists and sections. ► **magpi.cc/awesomevscode**
VS CODE CAN DO THAT?!
This website by Burke Holland and Sarah Drasner is a list of interesting things that VS Code can do. Genuinely fascinating. ► **vscodecandothat.com**
Once you’ve installed Visual Studio Code, you will want to investigate extensions. A huge array of additions to the base program enable you to add support for languages, debuggers, editing assistants, and general tools. Choose View > Extensions from the menu bar inside Visual Studio Code (or press CTRL+SHIFT+X) to see the extensions interface. By default, it will show some of the most popular extensions. The Extension Marketplace Documentation has a great overview of how to search for, install, update, and remove the extensions.
In our experience, most of what you need to know can be found in the extensive Visual Studio Code documentation and introductory video tutorials. If you want to deep-dive into Visual Studio Code with an online course, then there is one that everybody recommends: Ahmad Awais’s video tutorials called ‘VSCode Power’. Ahmad is an entertaining course leader and the video tutorials are engaging and fun. The course covers everything from the basics, and setting up Visual Studio Code, through version control with GitHub and a professional extension setup.
Three websites that get you up and running with Visual Studio Code
**VISUAL STUDIO CODE ON RASPBERRY PI** Microsoft has created its own guide to installing and running Visual Studio Code on Raspberry Pi. A great place to start. ► magpi.cc/ vscoderaspberrypi **VISUAL STUDIO CODE AND HTML** Codecademy’s article on using Visual Studio Code to build a basic HTML document walks you through setting up development folders and adding files. ► magpi.cc/vscodecademy **HOW TO USE VISUAL STUDIO CODE** Flavio Copes has written a great introduction to Visual Studio Code that works through installation, setting up fonts and workspaces. ► magpi.cc/flaviovscode