I use VSCode, very consistant across all platforms
you might find this interesting:
I actually just rewrote that script slightly.
-- * load an external script file if the file exists! * --
local f, cerror
f, cerror = loadfile("./data/lua/" .. n)
-- + --
if f == nil then -- checks if file exists!
print("cerror: " .. cerror) -- prints error reason to the log file!
print(n, "has been successfully loaded.")
the path part will probably need editing though as that's the folder structure I use.
project root > data > sub-folders.
I just edited the function so that you can pass a script name into the function when you call it.
To use it you would call a script inside of an execute a script action or inside of another script somewhere with...