IntelliJ-EmmyLua icon indicating copy to clipboard operation
IntelliJ-EmmyLua copied to clipboard

Implemented "Multiple expressions in one line" wrapping setting

Open pouwelsjochem opened this issue 4 years ago • 1 comments

This enables the user to configure wether they'd like to every statement to be on a single line or not.

Some examples of where multiple statements on a line could be used in Lua:

local object = createMyObject({
    width = 16,
    height = 16
}); object:playAnimation()

or

local newString = string.gsub(oldString, "_suffix", ""); print(newString)

pouwelsjochem avatar Dec 26 '20 19:12 pouwelsjochem

Also added the "Chained method calls" settings which can prevent unwanted indentation when chaining method calls

local test = test:test(function()

end)               :test()

Will become this when disabled

local test = test:test(function()

end):test()

pouwelsjochem avatar Dec 26 '20 20:12 pouwelsjochem