🧩 VS Code Extension 🔁 AHK v1 → v2 📂 Open Source
AHK Converter v0.1.5
Convert AutoHotkey v1 scripts to v2 inside VS Code

Features
- Convert an open AHK v1 script to v2 using the community converter
- Open the result in a new tab, replace the current file, or view a diff
- Works offline
Installation
- Install AutoHotkey v2.
- Install this VS Code extension (from VSIX or by opening the folder in VS Code and pressing F5 to launch the Extension Host).
- Optional: set the configuration values below.
Usage
- Open a v1
.ahk file in VS Code.
- Run one of the commands:
- AHK: Convert v1 to v2 - open in new tab
- AHK: Convert v1 to v2 - replace current file
- AHK: Convert v1 to v2 - show diff
Settings
ahkConverter.autoHotkeyV2Path : Path to the AutoHotkey v2 executable. If empty, uses AutoHotkey64.exe from PATH.
ahkConverter.converterScriptPath : Path to v2converter.ahk . Defaults to the bundled file at ${extensionPath}/vendor/v2converter.ahk .
ahkConverter.strictWindowsOnly : If true, warn on non-Windows platforms.
Notes
- The converter writes
<input>_newV2.ahk next to the input. The extension uses a temp folder so your files are not touched unless you choose Replace.
| |