AutoIt for Visual Studio Code

November 11, 2025 · View on GitHub

Version Installs Rating GitHub Stars

A comprehensive AutoIt language extension for Visual Studio Code, providing syntax highlighting, IntelliSense, diagnostics, and integrated script execution.

This extension has been forked and developed from Damien122's original release.

Quick Links: Installation | Features | Quick Start | Configuration | Keyboard Shortcuts | Platform Support | Troubleshooting | Contributing | Contributors


Installation

  1. Open Visual Studio Code
  2. Press Ctrl+Shift+X to open Extensions view
  3. Search for "AutoIt"
  4. Click Install on the AutoIt extension by Damien
  5. Reload VSCode when prompted

Prerequisites:


Quick Start

  1. Install AutoIt (if not already installed)
  2. Open an AutoIt script (.au3 file) in VSCode
  3. Press F5 to run your script
  4. Press Ctrl+F1 with cursor on a function to open AutoIt Help

For non-default AutoIt installations, configure the path in settings:

  • Open Command Palette (Ctrl+Shift+P)
  • Search for "Preferences: Open User Settings"
  • Search for "autoit.aiPath"
  • Set the full path to your AutoIt3.exe

Features

IntelliSense & Code Completion

Smart code completion for AutoIt functions, keywords, macros, constants, and variables.

IntelliSense

Symbol Navigation

Quickly navigate to functions, variables, and regions within your script using Ctrl+Shift+O.

Symbol Search

Diagnostics & Error Checking

Real-time syntax checking and error detection using Au3Check, displayed in the Problems tab.

Diagnostics

Script Execution & Building

  • Run scripts directly from VSCode (F5)
  • Compile scripts to executables (Ctrl+F7)
  • Build scripts with AutoIt3Wrapper (F7)
  • Check syntax with Au3Check (Ctrl+F5)

Integrated AutoIt Tools

Launch AutoIt tools directly from VSCode:

  • AutoIt3 Help (Ctrl+F1)
  • Au3Info Window Info Tool (Ctrl+F6)
  • Koda Form Designer (Alt+M)

Go to Definition

Jump to variable and function declarations using F12, or peek definitions with Alt+F12.

Debug Helpers

  • Insert debug MsgBox for selected variable (Ctrl+Shift+D)
  • Insert debug ConsoleWrite (Alt+D)

Code Formatting

Format AutoIt code using Tidy.exe (Windows only, requires SciTE4AutoIt3).

Include File Management

Open include files at cursor position with Alt+I, with support for custom include paths.

Multi-Output Panels

Run multiple scripts simultaneously with separate output panels for each.

Syntax Highlighting

Comprehensive syntax highlighting for AutoIt code, including:

  • Keywords, functions, and macros
  • Variables, constants, and strings
  • Comments and documentation blocks
  • COM object properties and methods with distinct highlighting for dot notation (e.g., $oExcel.Workbooks.Add())

COM objects are highlighted with a special token scope (support.class.com.autoit), allowing themes to style them distinctly from regular functions.

Map Variable Intelligence

The extension provides intelligent IntelliSense for AutoIt Map variables:

  • Smart key completion: Type $mUser. to see available keys
  • Scope-aware: Respects Local/Global scope and function boundaries
  • Cross-file tracking: Follows #include directives to merge Map definitions
  • Function parameter tracking: Detects keys added when Maps are passed to functions
Local $mUser[]
$mUser.name = "John"
$mUser.age = 30

; Type $mUser. and see: name, age

Configure in settings:

  • autoit.maps.enableIntelligence - Enable/disable Map completions (default: true)
  • autoit.maps.includeDepth - Max include depth for cross-file tracking (default: 3)
  • autoit.maps.showFunctionKeys - Show keys added by functions (default: true)

See Map Support Documentation for details.


Platform Support

This extension works on Windows, macOS, and Linux, with the following considerations:

FeatureWindowsmacOS/Linux
Syntax Highlighting
IntelliSense
Symbol Navigation
Go to Definition
Run ScriptsWindows only
Diagnostics (Au3Check)Windows only
Code Formatting (Tidy)Windows only
Compile/BuildWindows only

Note: AutoIt itself is a Windows automation language. While the extension provides language support on all platforms, script execution and AutoIt tools require a Windows environment.


Configuration

Essential Settings

Configure the extension via File → Preferences → Settings or Ctrl+,, then search for "AutoIt":

AutoIt Settings

SettingDescriptionDefault
autoit.aiPathPath to AutoIt3.exeC:\Program Files (x86)\AutoIt3\AutoIt3.exe
autoit.includePathsAdditional include folder paths[]
autoit.enableDiagnosticsEnable Au3Check diagnosticstrue
autoit.multiOutputSeparate output panel per scripttrue

All Configuration Options

Click to expand full configuration table
ConfigDescriptionDefault
autoit.aiPathFull path to AutoIt3.exeC:\Program Files (x86)\AutoIt3\AutoIt3.exe
autoit.wrapperPathFull or relative path to AutoIt3Wrapper.au3. Leave blank for default relative to aiPath.""
autoit.checkPathFull or relative path to Au3Check.exe. Leave blank for default relative to aiPath.""
autoit.helpPathFull or relative path to AutoIt3Help.exe. Leave blank for default relative to aiPath.""
autoit.infoPathFull or relative path to Au3Info.exe. Leave blank for default relative to aiPath.""
autoit.kodaPathFull or relative path to Koda FormDesigner (FD.exe). Leave blank for default relative to aiPath.""
autoit.includePathsAdditional include folder paths for IntelliSense[]
autoit.smartHelpDefine prefixes, paths & sources for custom UDF help files{ "__yourUdfFuncPrefix__": { "chmPath": "", "udfPath": [""] } }
Symbol Navigation
autoit.showVariablesInGoToSymbolShow variables in symbol search (Ctrl+Shift+O)true
autoit.showRegionsInGoToSymbolShow regions in symbol search (Ctrl+Shift+O)true
autoit.workspaceSymbolMaxFilesMax files to process for workspace symbol search500
autoit.workspaceSymbolBatchSizeFiles per batch when building symbol index10
autoit.symbolMaxLinesMax lines to process for symbols in a single file50000
Diagnostics
autoit.enableDiagnosticsProvide Au3Check diagnostics on open/savetrue
Script Execution
autoit.consoleParamsParameters passed to console on Run Script""
autoit.terminateRunningOnCloseTerminate script when file is closedtrue
Output Panels
autoit.multiOutputSeparate output panel for each scripttrue
autoit.multiOutputReuseOutputReuse output panel for the same filefalse
autoit.multiOutputMaxFinishedOutput panels to keep after script finishes2
autoit.multiOutputFinishedTimeoutSeconds until finished output panels are discarded (0 = indefinitely)0
autoit.clearOutputClear output before each run (when multiOutput is disabled or multiOutputReuseOutput is enabled)true
autoit.multiOutputShowProcessIdShow process ID in AutoIt output"Single"
autoit.outputCodePageSystem code page for output encoding (if text appears garbled)""
autoit.outputShowTimeShow timestamp for each output line"None"
autoit.outputMaxHistoryLinesNumber of output lines to keep5000
IntelliSense
autoit.enableParenTriggerForFunctionsUse ( to select function completion, add parens, and trigger signature help. Requires reload.true
Code Authoring
autoit.UDFCreatorAuthor name for Insert Function Header command"Your Name"
Map Intelligence
autoit.maps.enableIntelligenceEnable/disable Map completionstrue
autoit.maps.includeDepthMax include depth for cross-file tracking3
autoit.maps.showFunctionKeysShow keys added by functionstrue

Keyboard Shortcuts

Script Execution & Building

ShortcutCommand
F5Run Script
Ctrl+F5AutoIt Check (Syntax Check)
F7Build Script (AutoIt3Wrapper)
Ctrl+F7Compile Script
Shift+F8Set Command Line Parameters
Ctrl+Pause/BreakKill Running Script

Debugging

ShortcutCommand
Ctrl+Shift+DDebug to MsgBox
Alt+DDebug to Console
Ctrl+Alt+zDebug Remove Lines
ShortcutCommand
F12Go to Definition
Alt+F12Peek Definition
Ctrl+Shift+OGo to Symbol in File
Ctrl+F1Open AutoIt Help
Alt+IOpen Include File

Tools

ShortcutCommand
Ctrl+F6Launch Au3Info
Alt+MLaunch Koda Form Designer

Code Editing

ShortcutCommand
Ctrl+Alt+HInsert UDF Header

Troubleshooting

Common Issues

Extension features don't work / "AutoIt3.exe not found"

Configure autoit.aiPath in settings to point to your AutoIt installation:

"autoit.aiPath": "C:\\Program Files (x86)\\AutoIt3\\AutoIt3.exe"

Compile and Build commands don't work

These features require the full SciTE4AutoIt3 installation, which includes AutoIt3Wrapper and related tools.

Diagnostics (error checking) isn't working

Ensure:

  1. Au3Check.exe is installed (comes with AutoIt)
  2. autoit.enableDiagnostics is set to true
  3. You're on Windows (Au3Check is Windows-only)

Output shows garbled/incorrect characters

Set autoit.outputCodePage to match your system code page (e.g., "437" for US English, "850" for Western European).

IntelliSense not showing custom UDF functions

Add your UDF include paths to autoit.includePaths:

"autoit.includePaths": [
  "C:\\MyAutoItUDFs",
  "C:\\Program Files (x86)\\AutoIt3\\Include"
]

Keyboard shortcuts conflict with other extensions

Customize keybindings via File → Preferences → Keyboard Shortcuts or Ctrl+K Ctrl+S.


Contributing

Contributions are welcome!

Please follow the existing code style and include tests for new features.


Contributors

Made with contrib.rocks.


License

See LICENSE file for details.


Changelog

See CHANGELOG.md for version history and release notes.


Quick Links: Installation | Features | Quick Start | Configuration | Keyboard Shortcuts | Platform Support | Troubleshooting | Contributing | Contributors