EmmyLuaCodeStyle
EmmyLuaCodeStyle copied to clipboard
fast, powerful, and feature-rich Lua formatting and checking tool.
```lua local x = 'if x then'$ ``` 目前VSCode中在 `$` 处输入回车换行后,会错误的变成以下状态: ```lua local x = 'if x then' $ ``` 光标位置发生了一次错误的缩进。我们可以识别出这种情况,然后将缩进修复回去。
```lua function foo() $ end ``` 在 `$` 处输入回车后格式化为: ```lua function foo() $ end ``` 需要保证光标位置正确
实践中我们通常希望格式化总是输出出稳定的格式,但是手写代码允许有多种可用的格式,例如: ```lua if 1 or 2 then elseif 3 then end ``` ```lua if 1 or 2 then elseif 3 then end ``` 格式化的时候我希望总是可以输出成下面的格式,但是我手写时上面的格式也是允许的。 因此希望可以增加诊断专用的 `allow` 系列设置,这些设置仅仅是用于抑制风格诊断。 * 格式化时:根据设置进行格式化,不管 `allow`...
 当发现空格大于1个时,检查到后面的符号 `and` 在连续行上一致,因此过滤掉该空格的检查
currently `call_arg_parentheses` seems only to be able to remove parenthesis when they are there. Though it can not add them if they are missing. As I consider constructs like `require"ext".setup{}`...
I tend to write shorter one-expression if-elseif-else conditions as oneliners that I aligne like this: ```lua if off == 0 then return mid elseif off < 0 then hi =...
Sorry about spamming feature request lately! But I'm happy I've found a Lua-formatter/style checker that works for most of my needs! Here's something I do with my code often, and...
I am using CodeStyle as part of LuaLS in vscode Lua (v3.10.6) on windows 10 with no other extensions enabled. I am wanting `continuation_indent.in_expr = 0` to disable this rule,...
I would like to be able to write tables in this manner and it to give me feedback. I personally use space between curlies in map-type of tables, and no...
The `align_continuous_inline_comment = true` does not move the comment to correct place after the first formatting the value `align_continuous_assign_statement` can be any `true/false` ```lua local t = 123 local cccc...