-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vscode 里面无法使用和lua相关的formatter #213
Comments
不支持 |
Is there an alternative solution for formatting My current workaround is to switch the file association to |
see https://xmake.io/#/guide/syntax_description?id=optional-scope-configuration-syntax |
The issue I'm having, and I assume OP had as well, is that the format functionality doesn't work for When I attempt it I get an alert saying there is no formatter available and it directs me to look on the marketplace. Manually specifying the default formatter for Apologies if this was unrelated to the original comment, I'm relying on Google translate. |
The best way is to write our own formatter based on antlr4, like https://github.com/Koihik/LuaFormatter , but I have no time to do that. |
The existing lua formatter plugins work well enough, the issue stems from the You have to manually change the file association to work around it. |
We cannot set it to the Lua language. Otherwise, we cannot set the xmake icon independently, and there is no automatic completion of xmake API. |
I'll try forking https://github.com/Koihik/vscode-lua-format and changing the language to |
Xmake 版本
2.8.1
操作系统版本和架构
fedora
描述问题
vscode 里面无法使用和lua相关的formatter, 下载了lua-formamter 也还是没用
这些设置也是没用
期待的结果
即便没有配备, 希望也可以用lua-formatter 之类的工具
工程配置
普通的创建项目
附加信息和错误日志
无
The text was updated successfully, but these errors were encountered: