本文作者:Zzz

dbgba241223追加:VScode最新版内置的GitHub Copilot,现在已经有免费额度了。每月 2000 次智能代码完成,每月 50 条 Copilot 聊天消息。我试了一下,智能代码补全还行。会获取上下文的代码,我写了Word COM的注释,直接给我补全代码。

 

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\""
    },

 

声明:站内资源为整理优化好的代码上传分享与学习研究,如果是开源代码基本都会标明出处,方便大家扩展学习路径。请不要恶意搬运,破坏站长辛苦整理维护的劳动成果。本站为爱好者分享站点,所有内容不作为商业行为。如若本站上传内容侵犯了原著者的合法权益,请联系我们进行删除下架。