In VSC type
1. strg+p
2. ?
3. klick ext install
4. type autohotkey
klick on install2. ?
3. klick ext install
4. type autohotkey
After restart of VSC it says there is an issue with this extension.
But nevertheless i could get it working by downloading the extension from
https://github.com/stef-levesque/vscode ... master.zip
Then i copied the files in the zip in the VSC extension dir:
C:\Users\user\.vscode\extensions\slevesque.vscode-autohotkey-0.0.1
After a restart i got the syntaxhiglighting.
At second i wanted to run a script from VSC. After searching i tried the extension "Runner" from
Yasuhiro Matsumoto
As above type
1. STRG+P
2. ?
3. klick ext install
4. type runner
klick on install2. ?
3. klick ext install
4. type runner
After this you have to open the menu File>Preferences>User Settings.
This menu shows the Default Settings at the left and the file settings.json at the right where you have to copy
Code: Select all
{
"runner.languageMap": {"autohotkey": "C:/Program Files/AutoHotkey/autohotkey.exe"},
"runner.extensionMap": {"ahk": "autohotkey"},
}
Code: Select all
loop, 10
FileAppend , x:=%a_index%`n, *