files.associations
Open Settings, search files.associations, and add mappings:
"files.associations": {
"*.txt": "lua",
"*.bytes": "lua",
"*.lua.txt": "lua"
}
Relation to debugging
- Editor association ≠ the runtime loads them as Lua; that still depends on the engine.
- Include these suffixes in launch
fileExtNamesfor path mapping.