Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>apex-langNew to Visual Studio Code? Get it now.
apex-lang

apex-lang

is-nobody

|
64 installs
| (0) | Free
Language support for the Apex programming language
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Apex for Visual Studio Code

A Visual Studio Code extension providing syntax highlighting, code snippets, IntelliSense, and execution support for the Apex programming language.

Version License

About Apex

Apex is a programming language built for speed, power, simplicity, clarity, readability, and modernity. It's under the MIT License. Created by one person.

This extension adds support for the Apex language to VS Code.

Features

Syntax Highlighting

Full syntax highlighting for:

  • Keywords: function, if, else, for, in, import, constant, and, or, break, continue, return.
  • Literals: Numbers (including scientific notation), strings, booleans (true, false), none.
  • Comments: Line comments (//).
  • Operators: Arithmetic (+, -, *, /, %), Comparison (==, !=, <, >, <=, >=), Logical (and, or).
  • Structures: Function definitions, table literals [], string interpolation "{}".

Advanced IntelliSense & Autocompletion

Smart suggestions for:

  • Keywords: Control flow and logical operators.
  • 14 Standard Libraries: os, sys, math, string, table, random, json, xml, csv, base, regex, crypto, zip, datetime, ui.
  • Library Functions: Auto-complete for hundreds of functions like os.read(), sys.platform, random.integer(), json.encode(), etc.

Run Code

Execute your current Apex file directly from VS Code:

  • Command Palette: Apex: Run Current File
  • Keyboard Shortcut: F5 (when editing an .apex file)
  • Terminal: Runs the file in a dedicated "Apex" terminal instance.

Language Configuration

  • Auto-closing: Supports automatic closing of parentheses (), brackets [], and quotes "" & ''.
  • Indentation Rules: Smart indentation for blocks following function, if, else if, else, and for.

Installation

  1. Install the Apex Interpreter on your system.
    • Ensure the apex command is available in your system's PATH.
  2. Install this extension from the VS Code Marketplace or by installing the .vsix file.
  3. Open any file with the .apex extension.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft