vscode-lua-format
vscode-lua-format copied to clipboard
TTSLua
Hi I am new to VSC and wanted to use your formatter for files with the extension *.ttslua. But i cant get it to work. Can you tell me what i have to change to get to work?
- [ ] First of all install the extension
- [ ] Then right click on the .lua file
- [ ] After that select "Format document with..."
- [ ] At last select "vscode-lua-format"
no i think you missunderstood me. i have it installed in VSC and when i have lua files and press ALT+SHIFT+F it works like it should ;) but i have *.ttslua and there i get every time "There is no formatter for 'TTS Lua' files installed." so thats why i thought your formatter is not set to ttslua and maybe that could be changed easily like i did it for Atom editor. but i cant get it to work for VSC -.-
"files.associations": {
"*.ttslua": "lua"
}
You can add this in your settings.json. VSC will treat .ttslua
as .lua
.
That is not a good alternative because i am using an other extension for the ttslua with autofill and other stuff that will not work when it is triggert as lua sorry :(
That is not a good alternative because i am using an other extension for the ttslua with autofill and other stuff that will not work when it is triggert as lua sorry :(
"[ttslua]": {
"editor.defaultFormatter": "Koihik.vscode-lua-format"
},
specify LuaFormatter as default formatter for any extension you want. btw: LuaFormatter only works when the file is a valid Lua source file.
i cant get it to work :(
"files.associations": { "*.ttslua": "TTS Lua" }, "[ttslua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" }, "[TTS Lua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" }, "[TTSLua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" },
i tested different things...
when i change "*.ttslua": "TTS Lua" to lua then your formatter works but the other extension not any more...
i cant get it to work :(
"files.associations": { "*.ttslua": "TTS Lua" }, "[ttslua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" }, "[TTS Lua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" }, "[TTSLua]": { "editor.defaultFormatter": "Koihik.vscode-lua-format" },
i tested different things... when i change "*.ttslua": "TTS Lua" to lua then your formatter works but the other extension not any more...
Each language has a unique identifier in VSCode. Language Identifiers If other extension works well, you can check language identifier on status bar.
yeah if i click at the bottom then at the top there is "(TTS Lua)" next to "Tabletop Simulator Lua"... thats why i tested this but it is not working... I stopped to try getting it to work.