which will sort them by the date they were last modified. To add this to your settings, you can either create .vscode/settings.json and add this field there, or use Ctrl + Shift + P to open the command palette, then selecting "Open Settings (JSON)", and then adding the field in there.
Creating .vscode/settings.json is a workspace specific setting – meaning that it will only affect your editor when this specific workspace is open.
However, I don’t think you can sort by last added or created – plus, that doesn’t really make sense. Why would you want to sort by creation date? I doubt you’ll remember when you created each file and it’ll be difficult to navigate your file structure.
2
Answers
The setting you are looking for is
which will sort them by the date they were last modified. To add this to your settings, you can either create
.vscode/settings.json
and add this field there, or use Ctrl + Shift + P to open the command palette, then selecting "Open Settings (JSON)", and then adding the field in there.Creating
.vscode/settings.json
is a workspace specific setting – meaning that it will only affect your editor when this specific workspace is open.However, I don’t think you can sort by last added or created – plus, that doesn’t really make sense. Why would you want to sort by creation date? I doubt you’ll remember when you created each file and it’ll be difficult to navigate your file structure.
In your Settings (File → Preferences → Settings) search for:
explorer.sortOrder
and then change tomodified