LuaDev integration for VS Code.
Send code to LuaDev with simple shortcuts!
To install GMod LuaDev, do the following steps:
- Open Visual Studio Code
- Open the Quick Open Palette (By default:
Ctrl-P
) - Type
ext install gmod-lua
- Select the GMod LuaDev extension
- Select Install
Use the Command Palette (By default: Ctrl-Shift-P
) to select a GMod LuaDev
command to run.
You can add custom keybindings to trigger these commands by shortcut instead.
For example, to trigger Send to Server
when Ctrl-1
is pressed, use the
following keybinding shortcut:
{
"key": "ctrl+1",
"command": "gmod-luadev.server",
"when": "editorTextFocus"
}
gmod-luadev.server
- Sends the current file to run on the server.
gmod-luadev.shared
- Sends the current file to run on the server and all clients.
gmod-luadev.clients
- Sends the current file to run on all clients.
gmod-luadev.self
- Sends the current file to only run on your client.
gmod-luadev.client
- Sends the current file to run on a specific client.
gmod-luadev.port
(Default:27099
)- The port number to communicate to LuaDev with.
gmod-luadev.hidescriptname
(Default:false
)- If enabled, GMod LuaDev will send files with a blank filename, hiding the real filename.
GMod LuaDev is hosted at GitHub.
GMod LuaDev is licensed under the GPLv3.