All Projects → thqby → vscode-autohotkey2-lsp

thqby / vscode-autohotkey2-lsp

Licence: other
Autohotkey2 Language Support using vscode-lsp.

Programming Languages

typescript
32286 projects
autohotkey
350 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vscode-autohotkey2-lsp

lightning-language-server
LWC and Aura Language Servers - shipped as part of the Salesforce VSCode Extensions
Stars: ✭ 27 (+12.5%)
Mutual labels:  language-server
vscode-caddyfile-support
Rich Caddyfile support for Visual Studio Code
Stars: ✭ 30 (+25%)
Mutual labels:  language-server
asls
A front-end independent language server for AssemblyScript
Stars: ✭ 42 (+75%)
Mutual labels:  language-server
ZenScript
Visual Studio Code extension/Language Server for ZenScript, includes highlight, code snippet and language server(WIP). Works with 👇
Stars: ✭ 29 (+20.83%)
Mutual labels:  language-server
atom-ide-scala
Scala & Dotty support for Atom IDE (🧟‍♂️ zombie repo)
Stars: ✭ 47 (+95.83%)
Mutual labels:  language-server
jsonnet-language-server
A Language Server Protocol (LSP) server for Jsonnet (https://jsonnet.org)
Stars: ✭ 55 (+129.17%)
Mutual labels:  language-server
puppet-editor-services
Puppet Language Server for editors
Stars: ✭ 35 (+45.83%)
Mutual labels:  language-server
benten
A language server for Common Workflow Language
Stars: ✭ 50 (+108.33%)
Mutual labels:  language-server
gatsby-starter-kit
A set of starters for Gatsby.js
Stars: ✭ 99 (+312.5%)
Mutual labels:  v2
hcl-lang
Schema and decoder to be used as building blocks for an HCL2-based language server.
Stars: ✭ 44 (+83.33%)
Mutual labels:  language-server
language-server
Generic Language Server
Stars: ✭ 21 (-12.5%)
Mutual labels:  language-server
scalavista-server
A minimalistic Scala language-server
Stars: ✭ 14 (-41.67%)
Mutual labels:  language-server
go-coinmarketcap
The Unofficial Coin Market Cap API client for Go.
Stars: ✭ 61 (+154.17%)
Mutual labels:  v2
Spyglass
Development tools for vanilla Minecraft: Java Edition data pack developers.
Stars: ✭ 163 (+579.17%)
Mutual labels:  language-server
ltex-ls
LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others
Stars: ✭ 182 (+658.33%)
Mutual labels:  language-server
galaxy-language-server
Galaxy Language Server to help in Galaxy (https://galaxyproject.org/) tool wrappers development.
Stars: ✭ 20 (-16.67%)
Mutual labels:  language-server
vscode-tenkawa-php
Visual Studio Code extension integrating Tenkawa PHP language server.
Stars: ✭ 28 (+16.67%)
Mutual labels:  language-server
els-component-extraction-addon
Component extraction addon
Stars: ✭ 11 (-54.17%)
Mutual labels:  language-server
atom-languageclient
Provide integration support for adding Language Server Protocol servers to Atom.
Stars: ✭ 34 (+41.67%)
Mutual labels:  language-server
stardog-language-servers
Language Servers for Stardog Languages
Stars: ✭ 19 (-20.83%)
Mutual labels:  language-server

AutoHotkey2 Language Support

installs version

中文版 README往下翻页

repositories:

Github

Gitee

lsp-server download

# git
git clone --depth=1 -b server https://github.com/thqby/vscode-autohotkey2-lsp

# curl (windows)
mkdir vscode-autohotkey2-lsp & cd vscode-autohotkey2-lsp & curl.exe -L -o ahk2-lsp-update.exe https://github.com/thqby/vscode-autohotkey2-lsp/releases/download/v1.3.9/ahk2-lsp-update.exe & ahk2-lsp-update.exe

AutoHotkey V2 Language support for VS Code, Function realization based on v2 syntax analysis. Supports running on the Web, such as Chrome/Edge.

Language Features

Rename Symbol

Rename variables and function names in the scope in batches.

rename

Diagnostics

Simple syntax error diagnosis.

diagnostics

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.

snippet1

snippet2

Signature

Support for intelligent prompts for function parameters.

signature

Document Symbol

  1. Displays class, method, function, variable, label, hotkey, hot string, block information in the left outline column.
  2. press Ctrl + P, Input @symbol_name to retrieve and jump
  3. You can comment a method with a semicolon or /* */ on the top line of a function, variable.

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.

semanticTokens

Blocks

usage: Add ;; or ; TODO to the comment code block.

codeSymbole

Document Color

Compute and resolve colors inside a document to provide color picker in editor.

documentcolor

Hover

Supports hover prompts and comments for scoped variables, functions, global classes, and labels.
usage: Move the mouse over the symbol.

hover

Goto Definition

  1. Support for jumping to the declaration location of scoped variables, functions, global classes, and labels.
  2. usage: Press ctrl Then move the mouse over to the code and click.

gotoDefinition

Find All References

See all the source code locations where a certain variable/function is being used.

CodeFormat

usage:

  • Right-click the popup menu and click "Format document".
  • Press Shift+Alt+F.
  • Support automatic formatting when pasting or typing } of a function or class. (editor.formatOnPaste or editor.formatOnType needs to be enabled)

codeFormat

Custom folding

Fold the part between ;#region and ;#endregion, ;{ and ;}

;#region
code
;#endregion

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 Web Browser

visit https://github.dev or https://vscode.dev in Chrome/Edge, and install thqby.vscode-autohotkey2-lsp

Use in other editors

Vim and Neovim

Download coc.nvim plugin

cd $VIMRUNTIME\plugin
git clone --branch release https://github.com/neoclide/coc.nvim.git --depth=1

Download lsp-server

Open (n)vim and enter the command :CocConfig to enter the coc.nvim configuration file to add configuration information.

{
	"languageserver": {
		"autohotkey": {
			"module": "plugin/coc.nvim/plugin/ahk2-lsp folder/server/dist/server.js",
			"filetypes": [
				"autohotkey",
				"autohotkey2"
			],
			"args": ["--node-ipc"],
			"env": {
				"AHK2_LS_CONFIG": "{\"locale\":\"en-us\",\"InterpreterPath\":\"C:\\\\Program Files\\\\Autohotkey\\\\AutoHotkey.exe\",\"AutoLibInclude\":0}"
			}
		}
	}
}

AutoHotkey2语言支持

AutoHotKey V2 语言支持 for VS Code, 功能实现基于v2语法分析. 支持在Chrome/Edge等浏览器中使用 http://vscode.dev

语言特性

重命名符号

作用域范围内的变量、函数名批量重命名.

rename

错误诊断

简单语法错误诊断.

diagnostics

智能感知

支持对作用域范围内的变量、函数、参数、类名、方法名智能补全(简单的类型推导),支持对include文件和函数库补全.

snippet1

snippet2

智能提示

支持对函数、方法参数的智能提示.

signature

大纲

  1. 在左侧大纲栏目显示类、方法、函数、变量、标签、热键、热字串、区块信息
  2. 按Ctrl + P, 输入@符号名检索并跳转
  3. 您可以在函数、变量的上一行使用分号或/* */向方法添加注释

语义高亮

语义高亮显示是语法高亮显示的补充,改进和改进语法中的语法突出显示。编辑器在来自语法的高亮显示之上应用来自语义标记的高亮显示。 semanticTokens

代码标记

用法: 在注释代码块中添加;;; TODO
codeSymbole

颜色提示

计算并解析文档中的颜色,并提供颜色选择器更直观地修改颜色数据。

documentcolor

悬停提示

支持对作用域范围内变量、函数、全局类、标签的悬停提示并显示相关备注.
用法: 移动鼠标到相关符号上.
hover

转到定义

  1. 支持跳转到作用域范围内变量、函数、全局类、标签的声明位置.
  2. 用法: 按住 ctrl 然后移动鼠标到代码处点击.

gotoDefinition

查找所有引用

查看正在使用某个变量/函数的所有源代码位置。

代码格式化

用法:

  • 右键弹出菜单然后点击 格式化文档.
  • 或按 Shift+Alt+F.
  • 支持粘贴或键入函数或类的}时自动格式化。(需要开启editor.format OnPasteeditor.format OnType)

codeFormat

自定义折叠

折叠;#region;#endregion之间部分, ;{;}之间部分

;#region
code
;#endregion

上下文菜单

快速帮助

打开帮助文件并导航到当前光标处的关键字。

运行脚本

运行当前打开的脚本。

运行选定的脚本

运行光标选择范围的代码片段。

编译脚本

编译脚本生成可执行的 EXE 文件.

调试脚本

无需额外配置即可启动已安装的Debug扩展,支持带参数调试.

生成注释

为函数或方法生成 JSDOC 样式的注释文档.

在Web浏览器中使用

Chrome/Edge中打开 https://github.devhttps://vscode.dev, 然后安装thqby.vscode-autohotkey2-lsp

在其他编辑器中使用

(n)vim

下载coc.nvim插件

cd $VIMRUNTIME\plugin
git clone --branch release https://github.com/neoclide/coc.nvim.git --depth=1

下载lsp-server

打开(n)vim, 输入命令 :CocConfig 进入coc.nvim配置文件增加配置信息

{
	"languageserver": {
		"autohotkey": {
			"module": "plugin/coc.nvim/plugin/ahk2-lsp文件夹/server/dist/server.js",
			"filetypes": [
				"autohotkey",
				"autohotkey2"
			],
			"args": ["--node-ipc"],
			"env": {
				"AHK2_LS_CONFIG": "{\"locale\":\"zh-cn\",\"InterpreterPath\":\"C:\\\\Program Files\\\\Autohotkey\\\\AutoHotkey.exe\",\"AutoLibInclude\":0}"
			}
		}
	}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].