Feature request: sort functions within a file #1289
rodrigocfd
started this conversation in
Discussions
Replies: 1 comment 1 reply
-
Personally I'd prefer the code follows the logic rather than lexical order, and let the Outline view or documentation (go doc) do sorting if necessary. But that's an interesting idea. How about writing a command line tool and hook it up through vscode tasks or a simple extension or other existing On-Save extensions first? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just a simple idea: sort the functions (and methods) alphabetically in a Go file.
I found myself doing this manually quite often, it would be very handy to do this automatically.
Beta Was this translation helpful? Give feedback.
All reactions