Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Salesforce Language SupportNew to Visual Studio Code? Get it now.
Salesforce Language Support

Salesforce Language Support

Charlie Jonas

|
31,166 installs
| (4) | Free
Add language support tooling (code-completion, symbols, syntax check) for the Salesforce's Apex language. Previously named 'Salesforce Auto-Complete +'
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Salesforce Language Support

(Previously 'Salesforce Auto-Complete +')

Visual Studio Marketplace

This extension provides code completion and other language services for the salesforce apex programming language.

Features

Code Completion

Code Completion

SOQL Completion

Currently provides auto-complete on the following:

  • System namespaces
  • Class methods & properties
  • Annotations
  • Visualforce tags & Attributes (beta)
  • SObject fields (requires auth)
  • SOQL Queries (requires auth)

Go-to/Peak Definition

Go To Definitions

Quickly navigate to variable, function & class declarations

Syntax checking

Save time by spotting grammatical errors before sending code up to salesforce to compile.

Navigate Document Symbols

Quickly navigate to any function, property or subclass. In the "Quick Open" bar cmd-p simply type @ to navigate document symbols.

Symbol Navigation

Document Comment Generator

Generate Documenation Comments based on the context. To use, set cursor anywhere in the context of the document and run Generate Apexdoc.

Doc Generation

Currently support Apexdoc and Javadoc style comments on the following symbol types:

  • Class Header
  • Constructors
  • Properties
  • Methods

Requirements

  • src folder must be in root of workspace
  • Java (>1.8) runtime installed an on path

Configuration

Apex Class & VisualForce completions should work "out of the box".

To get completions on SObject & SOQL Queries, you must add org creditionals to your workspace settings:

     // SF User Name
    "apexAutoComplete.userName": "johnDoe@example.com",

    // Password + Security Token
    "apexAutoComplete.password": "abc123456789",

    // Login Url
    "apexAutoComplete.instanceUrl": "https://test.salesforce.com",

    // enables grammatic syntax checking on document change
    "apexAutoComplete.checkSyntax": "true",

    // if check sytanx is enable, how long to wait after typing
    "apexAutoComplete.checkSyntaxDelay": 400,

    //The format of document generation to use. Currently support `apexdoc` & `javadoc`
    "apexAutoComplete.docGenerationFormat": "apexdoc",

    // port to run the force.tooling service on
    "apexAutoComplete.port": 6500,

Please reload after updating settings!

Known Issues

After running a completion for the first time, a folder called .vim-foce.com will be created in your workspace root. This is a side effect of the current version of tooling-force.com.

Legal

This is pretty much just a container for the autocomplete functionality from the tooling-force.com library by Andrey Gavrikov.

Third-Party Licenses:

  • tooling-force.com LGPL v3
  • Force.com Web Service Connector (WSC) - see LICENSE.md
  • Apache Commons-logging - Apache 2.0 License
  • Akka - Apache 2.0 License
  • ANTLR 4 - BSD license
  • spray-json - Apache 2.0 License
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft