Skip to content

5.0.0 - 2023-08-07 ✌️

Compare
Choose a tag to compare
@mark-wiemer mark-wiemer released this 08 Aug 03:52
· 92 commits to main since this release
114bc31

AutoHotkey v2 support now in preview! Please test it out and report any issues, you'll help the community of 120,000+ users of this extension!

Be sure to go to the settings and update the new V2 settings in case the defaults aren't correct 😊

Breaking changes

  • Rename some settings. Users will have to manually adjust these new settings from the defaults to match their old settings:
    • ahk++.compiler.compileBaseFile is now ahk++.compiler.compileBaseFileV1
    • ahk++.file.compilePath is now ahk++.file.compilerPath
    • ahk++.file.executePath is now ahk++.file.interpreterPathV1
    • ahk++.file.helpPath is now ahk++.file.helpPathV1
    • ahk++.file.templateSnippetName is now ahk++.file.templateSnippetNameV1 with default value AhkTemplateV1

Other changes

  • Allow .ahk1 and .ah1 extensions for v1 scripts, .ahk2 and .ah2 for v2 scripts. .ahk and .ext can be used for either version, but default to AHK v2 (Issue #396)
    • The original changelog entry mentioned that the shared file extensions defaulted to AHK v1--this was incorrect
    • You can add a #Requires AutoHotkey v1 directive to the top of an of .ahk file to have it automatically load in AHK v1 independent of VS Code settings (Issue #392)
    • The same can be done with #Requires AutoHotkey v2
    • Alternatively, you can follow the below steps to associate all .ahk files with AHK v1:
    1. Open a .ahk file
    2. F1 -> "Change language mode"
    3. "Configure file association for .ahk files"
    4. "AutoHotkey v1"
  • Automatically change AHK version to match the #Requires directive near the top of any script the first time that script is opened
  • Allow running and debugging v1 or v2 scripts without changing settings
  • "Open help" (Ctrl + F1) now opens version-specific help
  • Add full syntax highlighting for v2 scripts thanks to AutoHotkey v2 Language Support by thqby
  • Update icons (found next to a script's name in the explorer)
    • v2 scripts will have official green icons, while v1 scripts now have modified blue icons
    • Icons are a bit smaller to align with existing VS Code icons