Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C+ Language Syntax HighlightingNew to Visual Studio Code? Get it now.
C+ Language Syntax Highlighting

C+ Language Syntax Highlighting

Bean Pringles

|
1 install
| (0) | Free
Syntax highlighting and language support for C+ (.cpx files)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C+ Programming Language

A simplified C-like language that transpiles to C.

Requirements

  • Python 3.6+
  • GCC compiler

Syntax

Variables

let x: int = 10
let* ptr: int = x
let y: int; unsigned; long = 100

Functions

fn add(a: int, b: int) -> int {
    return a + b
}

fn main() -> int {
    print("Hello, World!\n")
    return 0
}

Imports

import stdio
import stdlib

Example

import stdio

fn main() -> int {
    let x: int = 5
    let y: int = 10
    
    print("Sum: %d\n", x + y)
    return 0
}

Options

  • -r - Compile and run
  • -d - Delete executable after running
  • -c - Compile to C
  • -v - Show version
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft