Jump to content

Recommended Posts

Posted

I've been building AutoIt support for Zed, a fast, free, open-source editor for Windows, macOS and Linux. It's now available in Zed's extension registry: open Extensions, search for AutoIt, and install.

It uses its own tree-sitter grammar and a native language server written in Rust, so there's nothing extra to install. It picks up AutoIt and SciTE4AutoIt3 installs automatically.

What it does

  • Live Au3Check diagnostics as you type. Errors and warnings show up about half a second after you stop typing, without saving.
  • Hover docs for 3,542 functions (built-ins and the standard UDFs): signature, parameters, return value, and a link to the help page.
  • Go to definition and find references across #included files and the whole project folder.
  • Call hierarchy: see who calls a function and what it calls.
  • Signature help and parameter hints inside function calls, e.g. MsgBox(flag: 0, title: "Hi", ...).
  • Semantic highlighting: your own functions look different from built-in and UDF ones.
  • Color swatches next to 0xRRGGBB values in GUI color functions, with RGB/BGR handled per function.
  • Quick fixes: add a missing #include <...> for UDF functions, and fix function-name casing.
  • Tidy formatting, #region folding, and an outline with parameters and region contents nested.
  • Bundled tasks: Run, Au3Check, compile with Aut2Exe or the AutoIt3Wrapper GUI, Au3Info, Koda, and kill the running script.
  • 19 snippets for common blocks (Func, If, For, Switch, #Region, MsgBox, ...).

Notes

  • Diagnostics, formatting and the tasks need AutoIt/SciTE4AutoIt3, so they're Windows-only. Everything else also works on macOS and Linux.
  • Call hierarchy needs Zed 1.19 or newer.
  • A few features (signature help, LSP folding, the nested outline) are opt-in Zed settings; the README shows how.

Links

Feedback, bug reports and feature requests are welcome, either here or as GitHub issues.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...