Tencent / LuaPanda

lua debug and code tools for VS Code
Other
1.25k stars 354 forks source link

怎么修改格式化代码的一行长度 会自动换行 #99

Open 505032129 opened 3 years ago

505032129 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

stuartwang commented 3 years ago

format 功能引用的是 lua-fmt 插件,目前使用 lua-fmt 的默认配置。我看一下如果 lua-fmt 有换行选项,会在下个版本里引出来允许用户修改。

msccreater commented 1 year ago

支持换行选项了吗? 现在函数调用如果所有参数字符太长的话会直接换行导致每个参数一行