{"id":5499,"date":"2023-12-04T16:15:51","date_gmt":"2023-12-04T08:15:51","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=5499"},"modified":"2023-12-04T16:15:51","modified_gmt":"2023-12-04T08:15:51","slug":"emmyluacodestyle%e7%9a%84%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=5499","title":{"rendered":"EmmyLuaCodeStyle\u7684\u914d\u7f6e"},"content":{"rendered":"\n<p>\u8fd9\u4e2a\u63d2\u4ef6\u7528\u6765\u683c\u5f0f\u5316Lua\u4ee3\u7801\u975e\u5e38\u65b9\u4fbf<\/p>\n\n\n\n<p>\u5728Unity\u9879\u76ee\u4e2d\uff08\u5176\u5b83\u9879\u76ee\u4e5f\u4e00\u6837\uff09\u914d\u7f6e\u65b9\u6cd5\u4e3a\uff1a<\/p>\n\n\n\n<p>1\u3001\u5728\u9879\u76ee\u6839\u76ee\u5f55\uff0c\u65b0\u5efa\u4e00\u4e2a.editorconfig\u6587\u4ef6\uff0c\u7136\u540e\u5728VSCode\u4e2d\uff0cCtrl+Shift+P<\/p>\n\n\n\n<p>\u9009\u62e9 insert luaCodeStyle template \uff0c\u63d2\u5165\u6a21\u677f<\/p>\n\n\n\n<p>2\u3001\u5bf9\u67d0\u4e00\u9879\u4e0d\u6ee1\u610f\uff0c\u5373\u53ef\u4ee5\u4fee\u6539\uff0c\u4f8b\u5982  max_line_length = 250<\/p>\n\n\n\n<p>3\u3001VSCode\u6253\u5f00\u9879\u76ee\u65f6\uff0c\u4fdd\u8bc1\u6839\u76ee\u5f55\u4e0b\u9762\u6709.editorconfig\u6587\u4ef6\uff0c\u5373\u53ef\u4f7f\u7528 Ctrl+Shift+P \uff0c \u9009\u62e9 Format Document \u683c\u5f0f\u5316Lua\u6587\u4ef6\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u63d2\u4ef6\u7528\u6765\u683c\u5f0f\u5316Lua\u4ee3\u7801\u975e\u5e38\u65b9\u4fbf \u5728Unity\u9879\u76ee\u4e2d\uff08\u5176\u5b83\u9879\u76ee\u4e5f\u4e00\u6837\uff09\u914d\u7f6e\u65b9\u6cd5\u4e3a\uff1a 1\u3001\u5728\u9879\u76ee\u6839\u76ee\u5f55\uff0c\u65b0\u5efa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5499"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5499"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5499\/revisions"}],"predecessor-version":[{"id":5500,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5499\/revisions\/5500"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}