10 results found
-
Using C++ on Linux in VS Code
In this tutorial, you will configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger on Linux. GCC stands for GNU Compiler Collection; GDB is the GNU debugger. After configuring VS Code, you will compile and debug a simple C++ program in VS Code. This tutorial does not teach you GCC, GDB, Ubuntu or the C++ language.
-
Using GCC with MinGW - Visual Studio Code
Get the latest version of MinGW-w64 via MSYS2, which provides up-to-date native builds of GCC, MinGW-w64, and other helpful C++ tools and libraries. This will provide you with the necessary tools to compile your code, debug it, and configure it to work with IntelliSense.
-
Configure C/C++ debugging - Visual Studio Code
To get started with debugging you need to fill in the program field with the path to the executable you plan to debug. This must be specified for both the launch and attach (if you plan to attach to a running instance at any point) configurations.
-
C/C++ for Visual Studio Code
When you create a *.cpp file, the extension adds features such as syntax highlighting (colorization), smart completions and hovers (IntelliSense), and error checking. Open VS Code. Select the Extensions view icon on the Activity Bar or use the keyboard shortcut (⇧⌘X (Windows, Linux Ctrl+Shift+X)). Search for 'C++'. Select Install.
-
Terminal Basics - Visual Studio Code
To create a new terminal, use the ⌃⇧` (Windows, Linux Ctrl+Shift+`) keyboard shortcut. VS Code's terminal has additional functionality called shell integration that tracks where commands are run with decorations on the left of a command and in the scrollbar:
-
Configure VS Code for Microsoft C++
In this tutorial, you configure Visual Studio Code to use the Microsoft Visual C++ compiler and debugger on Windows. After configuring VS Code, you will compile and debug a simple Hello World program in VS Code. This tutorial does not teach you details about the Microsoft C++ toolset or the C++ language.
-
Extension Manifest | Visual Studio Code Extension API
Every Visual Studio Code extension needs a manifest file package.json at the root of the extension directory structure. The name of the extension - should be all lowercase with no spaces. The name must be unique to the Marketplace. SemVer compatible version.
-
Using Clang in Visual Studio Code
In this tutorial, you configure Visual Studio Code on macOS to use the Clang/LLVM compiler and debugger. After configuring VS Code, you will compile and debug a C++ program in VS Code. This tutorial does not teach you about Clang or the C++ language. For those subjects, there are many good resources available on the Web.
-
Glob Patterns Reference - Visual Studio Code
VS Code supports the following glob syntax: [] to declare a range of characters to match (example.[0-9] to match on example.0, example.1, …) Note: Paths are separated by / and not \ even on Windows. But when applied, glob patterns will match paths with both slash and backslashes.
-
Formatting Python in VS Code
Open a Python file in VS Code. Right-click on the editor to display the context menu. Select Format Document With.... Select Configure Default Formatter... from the drop-down menu. Select your preferred formatter extension from the list.