back to home

thqby / vscode-autohotkey2-lsp

Autohotkey v2 Language Support using vscode-lsp.

View on GitHub
289 stars
33 forks
5 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing thqby/vscode-autohotkey2-lsp in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/thqby/vscode-autohotkey2-lsp)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

**English** | 中文 AutoHotkey v2 Language Support **Repositories**: Github | Gitee AutoHotkey v2 Language support for VS Code, features realization based on v2 syntax analysis. Supports running on the Web, such as . https://vscode.dev or https://github.dev/github/dev If you wish to donate, donations can be sent here: alipay or alipay qrcode or paypal • AutoHotkey v2 Language Support • Language Features • Rename Symbol • Diagnostics • IntelliSense • Signature • Document Symbol • Semantic Highlight • Tags • Document Color • Hover • Goto Definition • Find All References • Code Action • Code Format • Custom folding • Declaration document • Context Menu • Quick Help • Run Script • Run Selected Script • Compile Script • Debug Script • Generate Comment • Use in other editors • Sublime Text4 • Vim and Neovim • Emacs • Use in Web Browser • Sponsor Language Features Rename Symbol Rename variables and function names in the scope in batches. Diagnostics Simple syntax error diagnosis. IntelliSense Supports intelligent completion of variables, functions, parameters, class names, and method names within the scope (by simple type deduction), and supports the completion of include files and function libraries. Support specifying jsdoc tags ( , ) for class members and global variables to exclude them from the completion list of the corresponding scope. • Private and protected class members are respectively visible within the current class, within the current class and within its subclasses. • Private and protected global variables are respectively visible in the current file, files in the same-level and lower-level directories. Signature Support for intelligent prompts for function parameters. Document Symbol • Displays class, method, function, variable, label, hotkey, hot string, block information in the left outline column. • press Ctrl + P, Input @symbol_name to retrieve and jump • You can comment a method with a semicolon or /\* \*/ on the top line of a function, variable. Jsdoc-style annotations can mark variable types. Semantic Highlight Semantic highlighting is an addition to syntax highlighting, resolves symbols in the context of a project. The editor applies the highlighting from semantic tokens on top of the highlighting from grammars. Tags usage: Add (default) or to the comment code Tags. Document Color Compute and resolve colors inside a document to provide color picker in editor. Hover Supports hover prompts and comments for scoped variables, functions, global classes, and labels. usage: Move the mouse over the symbol. Goto Definition • Support for jumping to the declaration location of scoped variables, functions, global classes, and labels. • usage: Press ctrl Then move the mouse over to the code and click. Find All References See all the source code locations where a certain variable/function is being used. Code Action Select or hover over the code, then activate the code action menu and select action item. The supported code actions are as follows: • Convert to code block with braces • Convert to parenthesized function call style • Batch include files • Remove unused symbols • Replace unexpected characters Code Format usage: • Right-click the popup menu and click "Format document". • Press . • Supports formatting code blocks when typing '}', formatting lines and indenting lines when typing '\n'. ( needs to be enabled) • Supports the use of formatting instructions to change the object style of different blocks Custom folding Fold the part between and , and Declaration document The declaration file is a file with the suffix of as the file name, which is used to describe the implemented functions or classes, etc., does not contain the implementation part of the code, and is referenced by the ahk file with the same name by default, and the syntax refers to provided by the extension. The declaration file can extend or rewrite the declaration of ahk built-in functions or classes, and the annotation document can be separated from the source code to provide a multilingual version of intellisense. In addition, you can modify setting of extension to replace the built-in declaration file with a third-party declaration file, such as • GroggyOtter's ahkv2_defintion_rewrite. Context Menu Quick Help Open the help file and navigate to the keyword at the current cursor. Run Script Run the currently open script. Run Selected Script Run the code snippet at the cursor selection. Compile Script Compile the script to generate executable EXE files. Debug Script No additional configuration is required to start the installed Debug extensions, and support debugging with parameters. Generate Comment Generate JSDOC-style comments for a function or method. Use in other editors • Install Node.js. • Download vscode-autohotkey2-lsp server using command line, or download and unpack through vscode marketplace. • Set the LSP configuration of the editor that support LSP(Language Server Protocol), such as Sublime Text4, Vim, Neovim, Emacs, etc. Sublime Text4 • , and install Sublime LSP plug-in. • , add lsp configuration, language selector, and syntax highlighting. This is a simple example syntax highlighting, save the file in a similar path . Vim and Neovim COC • Download coc.nvim plugin. • Open (n)vim and enter the command to enter the configuration file to add configuration information. nvim-lspconfig • Download nvim-lspconfig and install the plugin ray-x/lsp_signature.nvim. • Add the following to your NVIM configuration (init.lua e.g.). Ensure that points to the path of your vscode-autohotkey2-lsp installation and points to your AHK exe. Emacs Eglot • Add the following lines to your emacs config file Use in Web Browser visit https://github.dev or https://vscode.dev in , and install