Sorting files in VS Code Explorer

  1. Open user settings (Mac: cmd+, Windows/Linux: ctrl+,).
  2. If you want this new sort order to apply to all VSCode projects, continue to step three. If you want it to apply only to the currently opened folder/workspace, first click on the “Workspace” tab that’s directly below the settings search bar, then continue to step three.
  3. Using the settings search bar, search for the following setting ID: explorer.sortOrder.
  4. Click the dropdown for that setting and select your preferred sort order (in your case, modified).
  5. If you’d like to quickly toggle this setting between different values (via a keyboard shortcut), use the Settings Cycler extension.

Leave a Comment