Skip to content

External editors

Studio opens project scripts in an external code editor. Set the program and its flags in Preferences > General under External Editor and External Editor Flags, or from the command line:

LuduvoEditor --exec "settings.externaleditor code" \
    --exec "settings.externalflags --reuse-window --goto {file}:{line}:{col}" \
    --exec file.quit

In the flags, {project} is the project root folder and {file} is the script's absolute path. {line} and {col} are the 1-based line and column from an Output log entry or script.openexternal path:line[:col], the caret position when the script is open in a Studio tab, or 1 otherwise. Flags without {file} get the path at the end. With no External Editor set, Open in External Editor uses the system's default application. Saving a .luau or .lua file under scripts/ reloads it in the open Studio session.

The language server gives the editor Luau types.