Visual-studio – Visual Studio Code : Sort functions by name

code-snippetsvisual studiovisual-studio-codevscode-snippets

Is it possible to sort functions by name in Visual Studio Code ? I mean, using a keyboard shortcut or even an extension.

Precision: I'm spaeking about sorting the functions in the panel code editor.

Best Answer

Are you aware of the Outline view in the Explorer panel? You can sort by various categories.

See demo. I have sorted by Type to get all the functions together and they are alphabetical.

outline view