Skip to content

Latest commit

 

History

History
 
 

luahelper-vscode

LuaHelper Guide

version rating installs GitHub stars GitHub Contributors

LuaHelper is a High-performance lua plugin, Language Server Protocol for lua.

logo

Introduction

Lua is very popular in game development because of its simple syntax and flexible use. However, its ecology is not perfect, and IDE tools and support are few, which affects Lua's development efficiency and quality. LuaHelper complies with Microsoft Language Server Protocol and is a cross-platform Lua code editing and testing tool developed in go language. Compared with other Lua plugins currently on the market, it has the following improvements:

  • 1.Coroutine development, real-time detection, millisecond output detection results
  • 2.Support large-scale Lua projects, perfectly support editing and testing of 1000+ file project
  • 3.Comprehensive error type detection, including: grammar detection, semantic detection
  • 4.Various types of reference search, including: multi-file reference search, multi-layer reference search
  • 5.Rich configurable items, including: multiple alarm information configurations, ignorable file settings
  • 6.Low memory consumption, low-performance machines can still run smoothly

Lua因其语法简单、使用灵活,在游戏开发中十分流行。但其生态并不完善,IDE开发工具及配套支持较少,一定程度上影响了Lua的开发效率及质量。LuaHelper遵从微软Language Server Protocol协议,是采用go语言开发的一种跨平台Lua代码编辑及检测工具。

相较目前市面其他Lua插件,具有以下改进

  • 1.协程开发,实时检测,毫秒级输出检测结果
  • 2.支持大型Lua项目,完美支持1000+文件项目工程的编辑与检测
  • 3.全面的错误类型检测,包括:语法检测、语义检测
  • 4.多种类引用查找,包括:多文件引用查找、多层引用查找
  • 5.丰富的可配置项,包括:多种告警信息配置、可忽略文件设定
  • 6.内存消耗低,低性能机器仍可流畅运行

Documentation

Feature Summary

Code Editing

Code Detection

Debugger

Feature Detail

Defintion Find/定义跳转

支持局部、全局文件定义查询跳转 avatar

Find All References/引用查找

支持基于作用域的各类型引用查找 avatar

Document Symbols/文件符号表查询

支持文件域符号表查询,在搜索栏输入@ avatar

Workspace Symbols/工程符号表查询

支持工程域符号表查询,在搜索栏输入# avatar

Auto Code Completion/自动代码补全

支持变量、函数的自动输入提示 avatar

Format Code/代码格式化

支持代码格式化
avatar

Hover/代码悬停

支持代码悬停提示 avatar

Hightlight Global Var/全局变量着色

支持全局变量高亮着色 avatar

Syntax Check/语法检测

提供丰富的语法错误检测类型 avatar

Semantic Check/语义检测

支持多种类型的语义检测 avatar

Quick Analysis/快速增量分析

支持增量变化分析,分析结果诊断输出 avatar

Debug Attach/调试连接其他进程

Debug Detail Use/调试详细使用
avatar

Debug Single Lua File/调试单lua文

Debug Single Lua File [调试单文件] avatar

Run Single Lua File/运行单lua文件

Run Single Lua File [运行单文件] avatar

Installation

App Market Installation

  • Click the Vs Code application market icon
  • Search luahelper in the input box
  • Click to install Lua Helper

应用市场安装

  • 点击Vs Code应用市场图标
  • 在输入框中搜索 luahelper
  • 点击安装Lua Helper

avatar

  • 若应有市场异常,点击应用市场,尝试重新安装

Acknowledgements

  • luago-books, go语言生成lua的AST,修改了源码(对AST的每个节点增加了列的属性,同时也优化了性能)。
  • LuaFormatter, c++写的Lua代码格式化库,性能较高。
  • LuaPanda, 集成了LuaPanda的调试组件,LuaPanda的作者stuartwang也给我们提供了很多帮助。
  • EmmyLua, 作者阿唐对我们整个插件的实现提供很多帮助和建议。

Developer

yinfei, handsomeli, richardzha

Contribution

nattygui

Support

If you have any questions, please refer to FAQ. If you have any questions, please use issues. We will follow and reply. 如有问题先参阅 FAQ ,如有问题建议使用 issues ,我们会关注和回复。

Email:[email protected]; [email protected]; [email protected]

QQ群:747590892