DCS Lua InjectorThis VSCode extension lets you run lua code and code snippets inside Digital Combat Simulators mission environment. If you like my work, feel free to buy me a beer. InstallationFor this extension to work you will need to copy the DCS-Lua-Injector.lua script into your UsageHotkeyPressing Alt+D will send the currently selected text to DCS to be run in the mission environment. If no text is selected it will send the entire content of the currently open file. The keybinding can be changed in the (search for DCS Snippets viewThis can be found under the Explorer section of VS Code. It shows you a collection of lua snippets found in the current workspace, and lets you run them with a single click. To define a snippet create a
The snippet name must consist of alpha-numeric characters. You can have multiple snippets in a single file. Each snippet is considered to be from an SettingsConnection IP and port can be configured on the VS Code settings page, in case this needs to be run over the network. There is also some basic security available by changing the default password. On DCS side the port and password can be configured by editing the DCS-Lua-Injector.lua file and changing the following values:
|