spacewander commented on pull request #6382:
URL: https://github.com/apache/apisix/pull/6382#issuecomment-1069809255


   > Hi @spacewander , is there a recommended IDE and code formatter for 
formatting APISIX code? like a Lua plugin for VSCode or IntellJ IDEA? We tried 
the most popular Lua plugin in VSCode (from Tencent), but the formatted code 
has a lot of diff with original code. (we chose a random Lua file in APISIX and 
just format it directly). It makes us unable to format the code in our PR. We 
want a Lua formatter that is compatible with APISIX's coding format?
   > 
   > 
![image](https://user-images.githubusercontent.com/3787410/158534637-b635611a-2d04-4f3b-8666-5da41d6e64bb.png)
   > 
   > 
![image](https://user-images.githubusercontent.com/3787410/158534734-eba58441-e385-4398-ae1d-e10312083d77.png)
   
   Yes. We also tried LuaFormatter before, but it also format all the code 
instead of focussing a few places like adding space around the operator. So 
currently we have not found a suitable tool to do it automatically.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to