AHK VSCODE 插件推荐

AutoHotkey Plus Plus

名称: AutoHotkey Plus Plus
ID: mark-wiemer.vscode-autohotkey-plus-plus
说明: AutoHotkey IntelliSense, debug, and language support for VS Code, forked from AutoHotkey Plus by cweijan
版本: 2.8.1
发布者: Mark Wiemer
VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
  • V1调试高亮插件
  • 右上角调试按钮

AutoHotkey2 Language Support

ID: thqby.vscode-autohotkey2-lsp
说明: Autohotkey2 Language Support using vscode-lsp.
版本: 1.3.5
发布者: thqby
VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=thqby.vscode-autohotkey2-lsp
  • V2全功能调试高亮插件
  • 右键运行脚本
  • 右键调试脚本

vscode-autohotkey-debug

ID: zero-plusplus.vscode-autohotkey-debug
说明: Advanced debugging support for AutoHotkey(includes H) v1 and v2
版本: 1.11.0
发布者: zero-plusplus
VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug

配置

  • 插入下面配置VSCODE全局setting.json
  • 修改autohoktey.exe路径
        "launch": {
          "configurations": [
              {
                  "name": "AutoHotkey Debug U64",
                  "runtimeArgs": [
                      "/CP65001",
                      "/ErrorStdOut",
                  ],
                  "program": "${file}",
                  "request": "launch",
                  "runtime_v1": "C:/Program Files/AutoHotkey/AutoHotkey.exe",
                  "runtime_v2": "C:/Program Files/AutoHotkey_V2/AutoHotkey64.exe",
                  "type": "autohotkey",
                  "port": "9002-9010",
                  "console": "internalConsole",
                  "internalConsole": true,
                  "useOutputDebug": {
                      "useTrailingLinebreak": true
                  },
                  "useAutoJumpToError": true,
                  "usePerfTips": {
                      "fontColor": "red",
                      "format": "{{elapsedTime_ms}} ms {{hitCount}} hit"
                  },
                  "useDebugDirective": true
              },
              {
                  "name": "AutoHotkey Debug U32",
                  "runtimeArgs": [
                      "/CP65001",
                      "/ErrorStdOut"
                  ],
                  "program": "${file}",
                  "request": "launch",
                  "runtime_v1": "D:/AutoHotkey/AutoHotkey32.exe",
                  "runtime_v2": "D:/AutoHotkey2/AutoHotkey32.exe",
                  "type": "autohotkey",
                  "port": "9002-9010",
                  "useOutputDebug": {
                      "useTrailingLinebreak": true
                  },
                  "useAutoJumpToError": true,
                  "usePerfTips": {
                      "fontColor": "red",
                      "format": "{{elapsedTime_ms}} ms {{hitCount}} hit"
                  },
                  "useDebugDirective": true
              }
          ]
        }
  • 调试界面选择,开始调试

Code Runner

  • 右上角运行
  • 默认运行快捷键CTRL+ALT+N
ID: formulahendry.code-runner
说明: Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, 
版本: 0.11.7
发布者: Jun Han
VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner

全局setting.json配置模板

    "code-runner.executorMap": {
    "ahk": "\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" /CP65001",
    "ah2": "\"C:\\Program Files\\AutoHotkey_V2\\AutoHotkey.exe\" /CP65001"
        },
    "code-runner.executorMapByFileExtension": {
    ".ahk": "\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\"",
    ".ah2": "\"C:\\Program Files\\AutoHotkey_V2\\AutoHotkey.exe\""
        },
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA捐赠
共{{data.count}}人
人已捐赠
应用

Ahk2Exe汉化版

2022-5-26 16:33:58

应用

AHK游戏系列:俄罗斯方块

2022-6-17 6:53:54

3 条回复 A文章作者 M管理员
  1. hexuren

    有效果图更好

  2. gdzrh917

    感谢!今天使用VSCode调试代码,一直报错:Failed to connect to an active debugger client。后面使用你配置后,就可以了。但奇怪的是,之前一直不用,安装好扩展后就可以。

  3. zwm

    如能把 v1 v2 都转入 电脑 我先装了 v2。 v1 好像装不上

个人中心
购物车
优惠劵
有新私信 私信列表
搜索