Skip to content

πŸ‘¨β€πŸ’» Garry's Mod Lua VSCode Extension for enhanced auto completion, wiki integration, snippets, color palette, and much more...

License

Notifications You must be signed in to change notification settings

WilliamVenner/vscode-glua-enhanced

Repository files navigation

Logo

πŸ‘¨β€πŸ’» vscode-glua-enhanced

Supercharge your Garry's Mod development experience!

Media

Click!

Features

  • Syntax highlighting
  • Auto completion & wiki integration for almost everything in Garry's Mod
  • Client/Server/Menu flags
  • flags
  • Colour palette for Color()
  • Notes, Warnings, Bugs, etcc. imported from wiki
  • Function argument names, types and descriptions shown as you type
  • Function enum arguments autocompletion
  • File icons for .lua, .vmt, .vtf, .mdl, *.vtx, .vvd, .phy
  • .png & .vmt file previews
  • Workspace models/, materials/, sound/ and lua/ autocompletion file browser
  • Default sound/ autocompletion file browser
  • Default materials/flags16/ autocompletion file browser
  • Default materials/icon16/ autocompletion file browser
  • "View Source" auto completions button to look at the GitHub Lua source of literally every Lua-defined function in Garry's Mod
  • NetworkVar discovery and autocompletion
  • Net message discovery and autocompletion
  • Function signatures
  • Hook callback signatures
  • Hover documentation
  • References & definitions
  • Hover to see string length and cursor position
  • Hover to decode Lua ASCII byte sequences
  • Locals & globals autocompletion
  • Global table autocompletion
  • See definitions of functions defined in the Garry's Mod Lua repository
  • Jump to global and local definitions

And way more that I can't really be bothered to list because there are just too many :D

Workspace Globals Scanner

Global Calls Optimizer

Bytecode Heatmap Generator

Generates a (very, VERY approximate) "heatmap" of how heavy some parts of your code are, and allows you to inspect what bytecode is being generated and where.

Credits: Spar

Common Issues

Where are the file icons?!

Click the Gear icon in the bottom left of VSCode, click "File Icon Theme" and then select GLua.

Auto completion documentation isn't showing up!

Press CTRL + Space

I'm not seeing globals or local variables

You may have the editor.quickSuggestions setting set to false.

Bugs/Feature Requests

Please open an issue to report bugs and suggest features.

Recommended Companion Extensions

A GLua linter, powered by FPtje's glualint.

gluadump

This extension uses the gluadump addon to extract some information (e.g. debug.getinfo data for the "View Source" buttons) from Garry's Mod and may need to periodically be updated as new features and libraries are added to Garry's Mod.

Credits

lua.tmLanguage.json taken & modified from sumneko/vscode-lua

Bytecode heatmap generator written by Spar for LLLua

vtflib.js by Meepen

gluac made by Matt Stevens (MIT License)

About

πŸ‘¨β€πŸ’» Garry's Mod Lua VSCode Extension for enhanced auto completion, wiki integration, snippets, color palette, and much more...

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project