Visual Studio Code

Highlight Current Line

    "workbench.colorCustomizations": {
        "editor.lineHighlightBorder": "#00aa00"
    }

To URL Encode Text

Use Browser debugger:

encodeURI("V%")

VSCode REST

Example that uses variables

@clientId = cid
@clientSecret = some_secret_value
@userId = uid
# NOTE: the value might have to be URL encoded, depending on context
@password = some_password

### - this is a separator
# @name login
# the name gets refrenced in other runs
post http://host/oauth2/v1/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{clientId}} {{clientSecret}}

userName={{userId}}
&password={{password}}

###
# refernces login response body above
GET https://host/api/do-something
Authorization: Bearer {{login.response.body.access_token}}

VSCode Regular Expressions

Find doc:id="b2ce7520-caeb-4cfb-9ae4-2a40e8877bfb"

doc:id="[\w-]+"

References

  1. VS Code can do that?!
  2. REST Client
  3. application/x-www-form-urlencoded or multipart/form-data