Skip to content
Discussion options

You must be logged in to vote

first you need to download the lsp, follow the instructions from the readme https://github.com/thqby/vscode-autohotkey2-lsp?tab=readme-ov-file#use-in-other-editors,

assuming you created a ~/src folder and installed the lsp in that folder, this is what the lsp config will look like

[[language]]
name = "autohotkey"
scope = "source.ahk"
file-types = ["ahk"]
comment-token = ";"
indent = { tab-width = 2, unit = " " }
language-servers = ["ahk2"]


[language-server.ahk2]
command = "node"
args = ["c:/Users/your_username/src/vscode-autohotkey2-lsp/server/dist/server.js", "--stdio"]

the lsp includes a formatter so you don't need to configure one, it also includes some syntax highlighting with seman…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Lateralus138
Comment options

@masriomarm
Comment options

Comment options

You must be logged in to vote
1 reply
@Lateralus138
Comment options

Comment options

You must be logged in to vote
3 replies
@sibouras
Comment options

Answer selected by Lateralus138
@Lateralus138
Comment options

@sibouras
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants