Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sort files by type in folder view of Visual Studio Code

Tags:

Using Visual Studio Code, how can I sort files by type when I open folder view?

like image 985
fat Avatar asked Feb 13 '18 07:02

fat


People also ask

How do I sort my Visual Studio Code?

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.

How do I sort alphabetically in Visual Studio?

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.


2 Answers

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

like image 196
HaaLeo Avatar answered Sep 29 '22 03:09

HaaLeo


search "explorer" in settings page and you can change the control of sorting order there.enter image description here

like image 44
CallmeScarlett Avatar answered Sep 29 '22 02:09

CallmeScarlett