Page 1 of 1

Which editors support AutoHotkey v2?

Posted: 15 Oct 2022, 19:16
by lexikos
I am looking to collate a list of editors which support AutoHotkey v2, or files/guides for configuring editors to support it.

Syntax highlighting:
  • Are the basic elements highlighted correctly (comments, single and double quoted strings, numbers, control flow statements, hotkeys)?
  • Are built-in functions recognized (or are keywords configurable)?
  • How accurate or detailed is the highlighting?
Does it have:
  • The ability to run the script from directly within the editor?
  • Auto-complete? Built-in or user-defined words?
  • Auto-indent?
  • Call tips (showing the parameters of a function while the user is writing a function call)? Built-in functions only, or user-defined?
  • Interactive debugging - line stepping, breakpoints, inspecting variables?
  • Anything else (in short)?
If an editor also supports v1, that may be worth noting as well.

For editors that only support v1, I would like to know the status of any attempts to add v2 support.

Re: Which editors support AutoHotkey v2?

Posted: 16 Oct 2022, 05:48
by neogna2
Some quick notes on Notepad2 (Scintilla based) editors, forked from Notepad2 (end of life 2012) and Notepad2-mod (end of life 2017, v1 lexer by PhiLho)

Notepad3: No v2 support last year, unsure of current status. Some AutoHotkey talk in issue and there's LexAHKL2.cxx (based on v1 RaptorX lexer) but then again no v2 keywords here.

Notepad2e: No v2 lexer, v1 lexer by PhiLho

Notepad2 fork by zufuliu: v2 lexer LexAutoHotkey.cxx for Lexilla (no attribution comment so by zufuliu I guess).
Yes:
- basic elements highlighted correctly
- built-in functions recognized
- highlight accuracy good (so far in my limited use of it)
- run script from editor (Ctrl+L)
- auto-complete v2 keywords built in
- auto-indent
No:
- call tips
- interactive debugging

Re: Which editors support AutoHotkey v2?

Posted: 22 Oct 2022, 04:52
by thqby
https://github.com/thqby/vscode-autohotkey2-lsp#use-in-other-editors
ahk2 in vim, neovim and sublime text4
I can't write vim scripts, and syntax highlighting is not implemented.
Simple sublime syntax highlighting is provided, and the rest is provided by semantic highlighting.

Re: Which editors support AutoHotkey v2?

Posted: 24 Oct 2022, 16:51
by ahk7
Just in case some one wants to run with the idea again, from a few years ago https://github.com/ahkscript/AutoHotkey-Editors e.g. if there is a list of functions, variables etc making syntax highlighting files for a variety of text editors is relatively easy to maintain.

Re: Which editors support AutoHotkey v2?

Posted: 09 Nov 2022, 09:50
by kashmirLZ
V2 Adoption will increase once we get a dedicated IDE that supports it.
Offer the tools. Provide the documentation.
Then the people will come. The transition will be smooth and pleasant.

Re: Which editors support AutoHotkey v2?

Posted: 16 Nov 2022, 04:54
by jNizM

Re: Which editors support AutoHotkey v2?

Posted: 16 Nov 2022, 06:10
by AHK_user
Do not forget Visual Studio Code, in combination with the Autohotkey v2 language support and Autohotkey Plus Plus.

Re: Which editors support AutoHotkey v2?

Posted: 14 Feb 2024, 11:15
by xMaxrayx
yeah Agree Vscode with AHK is so sweet you can see all files like images and get their relative path while coding.