Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sort HostsNew to Visual Studio Code? Get it now.
Sort Hosts

Sort Hosts

ile-24556

|
71 installs
| (0) | Free
Sort hostnames.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sort Hosts

A Visual Studio Code Extension to sort hosts.

Usage

  1. Select lines. If no line is selected, the entire text is taken.
  2. Press Ctrl+Shift+P or F1 to show Command Palette.
  3. Execute Sort Hosts.

Usage animation

Features

  • Commas, semicolons, and whitespace character are treated as separators.
  • Words are sorted by hostname, IPv4 address, and other.
    • Hostnames are sorted by top-level domain, second-level domain ...
    • IPv4 addressed are sorted by numbers.
    • Others are sorted normally.
  • IPv6 addresses are not supported. They are treated as others above.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft