Skip to main content
MoxyCode has two fix modes — Safe Mode and Auto Fix Mode. Safe Mode is the default for all users. It gives you full control over every fix before it touches your code.

The two modes

Safe ModeAuto Fix Mode
DefaultYes
Apply Fix buttonManual — you click itAutomated — skipped
Save to confirmRequiredRequired
Undo Fix availableYesYes
Applies toDeploy errors + Code AnalysisDeploy errors + Code Analysis

Safe Mode

In Safe Mode, MoxyCode generates a fix and waits for you to review it before applying anything to your code. Deploy errors:
  1. Click Analyze & Generate Fixes
  2. Review the Fixed Code, What Changed, and Overall Summary
  3. Click Apply Fix to apply the change
  4. Click Save File in the notification to confirm, or Undo Fix to revert
Code Analysis:
  1. Click MoxyCode: 💡 Explain & Fix on a flagged line
  2. Review the fix in the Code Analysis panel
  3. Click Apply Fix to apply the change
  4. Click Save File in the notification to confirm, or Undo Fix to revert
MoxyCode Safe Mode in the VS Code status bar

Auto Fix Mode

In Auto Fix Mode, MoxyCode generates and applies fixes automatically — the Apply Fix button is skipped. You still see the notification with changed lines highlighted in green, and you still need to save the file to confirm. Deploy errors:
  1. Click Analyze & Generate Fixes
  2. Fix is generated and applied automatically
  3. Click Save File in the notification to confirm, or Undo Fix to revert
Code Analysis:
  1. Click MoxyCode: 💡 Explain & Fix on a flagged line
  2. Fix is generated and applied automatically
  3. Click Save File in the notification to confirm, or Undo Fix to revert
MoxyCode Auto Fix Mode in the VS Code status bar
In Auto Fix Mode, fixes are applied to your code immediately after generation. Always use Safe Mode when working against production orgs or any org with live users.

Switching modes

Click MoxyCode: Safe or MoxyCode: Auto in the VS Code status bar at the bottom of the screen to toggle between modes.
  • Switching to Safe Mode shows: “MoxyCode: Safe Mode enabled — fixes require manual approval”
  • Switching to Auto Fix Mode shows: “MoxyCode: Auto Fix Mode enabled — fixes apply automatically”
The mode persists across sessions — MoxyCode remembers your last setting.
Clicking the MoxyCode mode toggle in the status bar

When to use each mode

Use Safe Mode when:
  • Working against a production org or any org with live users
  • Applying fixes with a Medium or Low confidence rating
  • Applying fixes rated Minor Risk or Review Needed
  • You want to understand every change before it goes into your code
Use Auto Fix Mode when:
  • Working in a personal development sandbox
  • Iterating quickly through multiple deploy-fix cycles
  • All generated fixes are High Confidence and Safe fix rated
  • You are familiar with the codebase and comfortable with automatic changes
A good default workflow: use Safe Mode everywhere, switch to Auto Fix Mode only in your dev sandbox when you need to move fast.

Common issues

The MoxyCode mode toggle appears in the VS Code status bar at the bottom of the screen. If it is not visible, make sure MoxyCode is installed and active — open any supported file (.cls, .trigger, .js, .html) to activate the extension. If it still doesn’t appear, run Developer: Reload Window from the Command Palette.
You are in Auto Fix Mode. Click MoxyCode: Auto in the status bar to switch back to Safe Mode. If a fix was already applied that you want to revert, click Undo Fix in the notification or use Cmd+Z / Ctrl+Z in the editor.
Use Cmd+Z / Ctrl+Z to undo the save and the applied fix. VS Code maintains undo history across saves so you can still revert.

Fix Deployment Errors

Learn how fixes are generated and applied

Offline Mode

Run MoxyCode fully local with no internet connection