• Visual Studio Code
    7 replies, posted
Hi, If anyone else is using visual studio code, what extensions are you using? Also I have the extension vscode-lua but I hate how its formatting my hooks and other methods, if anyone knows how i can change this that would be appreciated. How I want it to be formatted: local test = {} hook.Add("test", "test", function() for k, v in pairts(test) do end end) How vscode-lua is formatting it: local test = {} hook.Add( "test", "test", function() for k, v in pairts(test) do end end )
There's a config for linebreakMultipleAssignments but it doesn't appear to do anything lol https://github.com/trixnz/vscode-lua/search?q=linebreakMultipleAssignments&unscoped_q=linebreakMultipleAssignments
Yeah I have tried this and it doesn't do anything for me either.
use: glua
glua doesn't have formatting, which is why I want to also use vscode-lua however glua seems to stop working and suggesting methods whilst being used with vscode-lua. I use Gmod Lua instead. vscode-lua just formats it in a weird way and puts arguments on multiple lines which I don't like but cant seem to find any other extension that has formatting. As I showed above.
Stoned penguin made a glua plugin for vscode that I use. I just format everything as I go.
https://i.imgur.com/NKWpst1.gifv Formatting on the go is just as fast as the "lazy" version you want, look above for example. I have had 0 issues with glua so far and I'm extremely happy with the extension. You should definitely give it another shot.
Alright, I guess I was just trying to be too lazy... I will use glua, thanks for the input anyway guys.
Sorry, you need to Log In to post a reply to this thread.