Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Explorer Sort ToggleNew to Visual Studio Code? Get it now.
Explorer Sort Toggle

Explorer Sort Toggle

takline

|
3 installs
| (0) | Free
Toggle sort order in the Explorer panel between 'By Name', 'By Last Modified', and 'By Type' with a keyboard shortcut or toolbar button.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Explorer Sort Toggle

Toggle the sort order in the VS Code / Cursor Explorer panel between 'By Name' (default) and 'By Last Modified' with a single command or keyboard shortcut.

Features

  • Toggle Command: Run Toggle Explorer Sort Order from the Command Palette.
  • Keyboard Shortcut: Cmd+F10 (Mac) or Ctrl+F10 (Windows/Linux) when the Explorer is focused.
  • Visual Feedback: Shows a notification indicating the new sort mode (Name vs. Last Modified).

Quick Install

To install this extension locally without publishing to the marketplace:

  1. Clone the repository:

    git clone https://github.com/takline/explorer-sort-toggle.git
    cd explorer-sort-toggle
    
  2. Run the setup script:

    ./install-local.sh
    

    This script will install dependencies, package the extension, and attempt to install it to both VS Code and Cursor automatically.

Prerequisites for Setup

  • Bun (v1.0+)
  • VS Code or Cursor

Usage

  1. Open the File Explorer in the side bar.
  2. Press Cmd+F10 (macOS) or Ctrl+F10 (Windows/Linux).
  3. The sort order will toggle between modified (descending date) and default (name).

Development

If you want to contribute or modify the extension:

  1. Install dependencies:

    bun install
    
  2. Compile:

    bun run compile
    
  3. Watch mode (for development):

    bun run watch
    
  4. Package:

    bun run package
    

Troubleshooting

If the extension isn't behaving as expected:

  1. Open the Output panel (Cmd+Shift+U).
  2. Select Explorer Sort Toggle from the dropdown.
  3. Check the logs for confirmation of configuration updates.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft