简体   繁体   English

如何按字母顺序对 go 代码函数进行排序? GoLand 代码 -> 重新排列代码显示为灰色

[英]How to sort go code functions alphabetically? GoLand Code -> Rearrange Code is greyed out

I really don't want to rearrange all of my code manually as I have unwittingly been doing for a couple months now before finally realizing my editor or some other external tool should be able to do this for me.我真的不想手动重新排列我的所有代码,因为我已经不知不觉地做了几个月,然后才最终意识到我的编辑器或其他一些外部工具应该能够为我做这件事。

However the Code -> Rearrange menu setting option is greyed out.但是Code -> Rearrange菜单设置选项是灰色的。

Settings -> Editor -> Go has no mention of rearranging or matching functions. Settings -> Editor -> Go没有提及重新排列或匹配功能。

Has this functionality not been ported over to GoLand yet?这个功能还没有移植到 GoLand 上吗?

You're right, this functionality is not available in GoLand yet, please see and follow GO-2270 .没错,此功能在 GoLand 中尚不可用,请参阅并关注GO-2270

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM