Using Visual Studio Code, how can I sort files by type when I open folder view?
Select the code you wish to sort in Visual Studio Code. Then hit the key combination Ctrl+P and type the greater than sign ( > ). Next type sort and choose Sort Lines Ascending or choose the Descending option. Now the lines you've previously selected will be sorted by the option you chose.
Select the desired ones(supports for kind variable). Using Command Palette (CMD/CTRL + SHIFT + A) Or Cmd+Shift+P and select Alphabetical Sorter thats it.
To sort the files of the explorer view by type, add the following option to your user settings (settings.json
):
"explorer.sortOrder": "type"
This feature is available since vscode release 1.15
search "explorer" in settings page and you can change the control of sorting order there.
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