Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>url-formatNew to Visual Studio Code? Get it now.
url-format

url-format

MilkerLiu

|
240 installs
| (1) | Free
format url
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

url-format

This is a simple tool for url format

How To use?

  1. Select target text
  2. CMD + Shift + P: get the vscode Command Pallttle
  3. Enter the url:, get the command, return
    • Url: Format (Format url to a json)
    • Url: Generate (Generate url from a json)
    • Url: Decode
    • Url: Encode

Samples

format url string to json

// origin url
http://www.xxx.com/search?url=http%3A%2f%2fwww.bbb.com%3Fa%3D1%26b%3D1&a=1

// cmd> Url: Format

// result
{
    "main": "http://www.xxx.com/search",
    "params": {
        "url": {
            "main": "http://www.bbb.com/",
            "params": {
                "a": "1",
                "b": "1"
            },
            "hash": ""
        },
        "a": "1"
    },
    "hash": ""
}

format json to url

// origin json string for url
{
    "main": "http://www.xxx.com/search",
    "params": {
        "url": {
            "main": "http://www.bbb.com",
            "params": {
                "a": "1",
                "b": "1"
            },
            "hash": ""
        }
        "a": "1"
    },
    "hash": ""
}
// cmd> Url: Generate

// result
http://www.xxx.com/search?url=http%3A%2f%2fwww.bbb.com%2f%3Fa%3D1%26b%3D1&a=1

Url Encode

// origin text
http://

// cmd> Url: Encode

// result
http%3A%2f%2f

Url Decode

// origin text
http%3A%2f%2f

// cmd> Url: Decode

// result
http://
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft