A simple and efficient Visual Studio Code extension for sorting directory listings by date and time. This extension is perfect for users who often work with directory information and need a quick way to sort and organize file metadata directly from their editor.
- Parse and process directory listings from the selected text.
- Sort files and directories by date and time in ascending or descending order.
- Replace the selected text with the sorted result in a clean and organized format.
- Supports standard
DIRcommand output for seamless integration.
Copy the output of your DIR command or similar directory information into your editor. For example:
12/31/2024 09:02 AM 215,516 package-lock.json
01/06/2025 08:24 AM 1,292 package.json
01/04/2025 01:58 PM 1,601 README.md
01/06/2025 08:00 AM <DIR> src
12/31/2024 07:18 AM 536 tsconfig.json
12/31/2024 07:13 AM 3,098 vsc-extension-quickstart.md
Highlight the directory listing text in the editor that you wish to sort.
Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) to open the Visual Studio Code Command Palette.
Type and select:
Dir and Sorting: Ascending Sortto sort the entries by date and time in ascending order.Dir and Sorting: Descending Sortto sort the entries by date and time in descending order.
12/31/2024 07:13 vsc-extension-quickstart.md
12/31/2024 07:18 tsconfig.json
12/31/2024 09:02 package-lock.json
01/04/2025 01:58 README.md
01/06/2025 08:00 src
01/06/2025 08:24 package.json
The selected text will be replaced with the sorted results. Example sorted output in ascending order:
This project is not licensed. You are free to do as you wish with the code, but please note that you do so at your own risk.