Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SF PreflightNew to Visual Studio Code? Get it now.
SF Preflight

SF Preflight

avidev9

|
142 installs
| (0) | Free
Environment health checks and setup verification for Salesforce development
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SF Preflight

SF Preflight Logo

Environment health checks and setup verification for Salesforce development in VS Code.

Features

  • 🔍 Environment Health Check - Comprehensive check of your Salesforce development environment
  • ⚙️ Automatic Provisioning - Automatically sets up standard configuration files (Prettier, EditorConfig, VS Code settings)
  • 📝 Spell Checker - Configures Code Spell Checker with Salesforce-specific dictionary
  • ⚡ Smart Caching - Caches successful health checks for 24 hours to speed up startup
  • ☕ Java Check - Verify Java installation and version (11+ required for Apex Language Server)
  • 📦 Node.js Check - Verify Node.js installation and version (18+ recommended)
  • ☁️ Salesforce CLI Check - Verify SF CLI installation and provide update options
  • 🔌 SF CLI Plugins Check - Verify required plugins like sfdx-scanner and code-analyzer
  • 📊 Status Bar - Quick visual indicator of environment health (green ✓, yellow ⚠, red ✗)

Automatic Provisioning

When you open a Salesforce DX project, SF Preflight optionally checks for and creates ensuring standard configuration files:

  • .prettierrc (Optimized for Apex/LWC)
  • .prettierignore
  • .editorconfig (Apex tab size: 2 spaces)
  • .gitignore (Standard Salesforce ignore rules)
  • .vscode/settings.json (Standard file exclusions)
  • cspell.json (Salesforce dictionary configuration)

This behavior can be disabled or customized in Settings.

Configuration Templates

You can override the standard templates used for provisioning by editing these settings in your settings.json:

  • sfPreflight.provisioning.templates.prettierrc (Object)
  • sfPreflight.provisioning.templates.prettierignore (String)
  • sfPreflight.provisioning.templates.editorConfig (String)
  • sfPreflight.provisioning.templates.vscodeSettings (Object)

Re-provisioning

If you need to update your configuration files to the latest standards (or if you messed them up and want to reset), you can force a re-provision:

  1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Run SF Preflight: Force Re-provision Configuration
  3. Confirm the warning dialog.

Note: This will overwrite your existing config files (.prettierrc, .editorconfig, etc.) with the extension's default templates.

Status Bar

The extension shows your environment status in the status bar:

  • ✓ Green - All checks passed

  • ✓ Green (Cached) - Environment confirmed healthy (check skipped for performance)

  • ⚠ Yellow - Warnings (e.g., non-critical missing plugins)

  • ✗ Red - Issues detected that need attention

  • ✗ Red - Issues detected that need attention

Clicking the status bar item opens a Quick Menu with options to:

  • Run System Health Check
  • Force Re-provision Configuration
  • Show Project Info

Commands

All commands are available via the Command Palette (Cmd+Shift+P / Ctrl+Shift+P):

Command Description
SF Preflight: Check Environment Health Run full environment health check
SF Preflight: Check Java Installation Check and configure Java
SF Preflight: Check Salesforce CLI Check and update Salesforce CLI
SF Preflight: Check Node.js Installation Check Node.js version
SF Preflight: Show Project Info Display SFDX project details
SF Preflight: Force Re-provision Configuration Reset/Update config files (Overwrite)

Settings

Setting Default Description
sfPreflight.runHealthCheckOnStartup true Run environment health check on startup
sfPreflight.provisioning.runOnStartup true Enable automatic provisioning system
sfPreflight.provisioning.spellChecker true Auto-configure Spell Checker
sfPreflight.provisioning.prettier true Auto-create Prettier config
sfPreflight.provisioning.editorConfig true Auto-create EditorConfig
sfPreflight.provisioning.vscodeSettings true Auto-create VS Code workspace settings

Installation

Install from the VS Code Marketplace or search for "SF Preflight" in VS Code Extensions.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft