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.
Select my lines of text. Press F9. Keep your eyes on the code, you'll see a change. And now it's in alphabetical order.
You just select the lines you want to sort and Alt+3 or Alt+4 (asc/desc).
To sort your file, open the file via solution explorer: Right click the open file. Code Maid menu (likely near the top of the right click menu) Click Reorganize Active Document.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With