Lesson 1 / 813%

Lesson 1

Introduction

10 min

Understand what VS Code is, how it differs from an IDE, and why it's worth learning.

Definition

Visual Studio Code (abbreviated VS Code) is a free, open-source, cross-platform source code editordeveloped by Microsoft. It is used to write, read, organize and fix code in any programming language, thanks to features such as syntax highlighting, auto-completion, error detection and an extension system.

What is Visual Studio Code?

Visual Studio Code — often shortened to VS Code — is a free source code editor developed by Microsoft. Despite what its name might suggest, it is a different product from "Visual Studio", the full IDE historically aimed at .NET development: VS Code is a lightweight, fast tool available on Windows, macOS and Linux, and it is used today by a large majority of web developers, whatever the language (HTML, CSS, JavaScript, Python, PHP,Java...).

The software was launched by Microsoft in 2015 and has grown spectacularly: in just a few years, it became the most widely used editor in the world in developer surveys. Its core is distributed under an open-source license, which means anyone can read its source code, propose improvements or create their own tools to extend it. This openness largely explains its success: a worldwide community contributes every day to making it better.

A code editor should not be confused with a simple text editor such as Windows Notepad or TextEdit on Mac. A code editor understands the structure of your code, colors the syntax to make it readable, detects your errors before you even run your program, and offers smart auto-completion.

Let's take a concrete example. If you write a <div> tag in anindex.html file and forget to close it, VS Code will flag it immediately with an underline. In Notepad, you would see no difference: the problem would only show up when you open the page in the browser, and you would then have to hunt for the error by hand. This constant help saves an enormous amount of time, especially when you are starting out.

Download page on the VS Code website

Code editor or IDE?

You will often hear about "IDEs" (Integrated Development Environments). At its core, VS Code is a lightweight code editor, not a full IDE like Visual Studio or IntelliJ IDEA. But thanks to its huge ecosystem of extensions, it easily turns into an environment almost as complete as an IDE, while still starting quickly and using few resources.

A classic IDE bundles everything needed for a given language in a single piece of software: editor, compiler, debugger, project manager, testing tools... It is powerful, but often heavy and specialized. VS Code takes the opposite approach: it gives you a simple, fast foundation, then lets you add only the building blocks you need. Want to program in Python? You install the matching extension. Then you move on to the web with JavaScript? You simply add other tools, without changing software.

  • Lightweight and fast: unlike many IDEs, VS Code starts in a few seconds, even on a modest machine.
  • Free and open source: the source code is publicly available, and using it is entirely free.
  • Cross-platform: the same experience and the same shortcuts (with a few exceptions) on Windows, macOS and Linux.
  • Extensible: thousands of extensions let you add support for new languages, formatting tools, visual themes, advanced Git integrations, and more.
  • Customizable: themes, fonts, panel layout, keyboard shortcuts and settings can be adapted to your habits, through the interface or the settings.json file.
  • Git integration: you can track changes to your code, compare versions and commit your changes without leaving the editor.

Why learn VS Code in particular?

There are many code editors (Sublime Text, Notepad++, Vim...), but VS Code has established itself as the de facto standard in the web and software development industry for several years now. Almost all tutorials, training courses and job offers assume some familiarity with this tool. Learning to master it, even at a basic level, is therefore an extremely worthwhile investment: you will use it every day, for years, whatever language or framework you learn next.

There is also a very practical advantage: since almost everyone uses the same tool, it is easy to find help. When you run into a problem, there is a good chance someone has already encountered it and that the solution is documented on a forum, in a video or in the official documentation. Learning on a popular tool means learning with a safety net.

Good to know

VS Code does not run your code itself: it helps you write, read and fix it more easily. To run a program (for example a .py file in Python or a Node.js script), the corresponding language must be installed on your machine — VS Code then "plugs into" it through extensions.

The main features to know

Before going into detail, here is an overview of the features you will come across most often. No need to remember everything now: each one will be explained in detail in a dedicated lesson.

  • Syntax highlighting: each element of the code (keywords, strings, comments...) gets a different color, which makes reading much easier.
  • Auto-completion: as you type the first letters of an instruction, VS Code offers suggestions that you accept with theTab or Enter key.
  • Command Palette: a search field, opened withCtrl+Shift+P (Cmd+Shift+P on Mac), that gives access to almost every action in the editor.
  • Integrated terminal: a command line directly inside the editor window, to run programs without switching windows.
  • Debugger: a tool to run your code step by step and understand where an error comes from.

Who is VS Code for?

VS Code suits complete beginners as well as experienced developers. If you are just starting out, its clear interface and automatic suggestions will help you move forward without feeling lost. If you are already comfortable, you will appreciate the speed, the keyboard shortcuts and the ability to adapt every detail to the way you work. Students, freelancers, teams in companies and even contributors to large open-source projects use it every day.

Another reassuring point: you don't need a powerful computer. An entry-level laptop is more than enough to create HTML pages, write Python scripts or build a complete website. The editor stays smooth, and you can open several files and projects in parallel without any noticeable slowdown.

Finally, VS Code is updated regularly by Microsoft. New features, bug fixes and performance improvements therefore arrive often, at no cost to you. You benefit from a modern, actively maintained tool, which is valuable when building work habits for the long term. In short, VS Code is an excellent starting point for any future developer.

What you will learn in this course

In the next lessons, you will install VS Code, discover its interface, learn to organize your project files and folders, install your first extensions, use the integrated terminal, master a few keyboard shortcuts that will save you precious time, and finally discover how VS Code integrates with Git to track the evolution of your code over time.

The course is deliberately progressive: each lesson builds on the previous one and includes small practical exercises. The goal is not to teach you every nook and cranny of the software, but to make you comfortable quickly, so that the tool becomes natural and you can focus on what really matters: writing code.

Exercise

Before continuing, take a minute to list the text or code editors you have used so far (even Notepad or Word count!). What was missing from those tools to write code comfortably?