This is a simple extension that encodes or decodes a piece of text as a whole URI (URL) or as a
URI component, i.e. query parameter, using the JavaScript encodeURI()
and encodeURIComponent()
functions.
-
Select a URI and open command palette ->
Encode as URI
orDecode as URI
to encode/decode it as a whole URI. This ensures that only the necessary parts are encoded, i.e. query parameters. -
Select a part of a URI and open command palette ->
Encode as URI Component
orDecode as URI Component
to encode/decode as a URI parameter.Usually you only want to use this if you select the value of some parameter after the
=
sign and you want to encode/decode only that part.
Added support for decoding +
as
(thanks to psignoret)
Added support for multi-selection (thanks to bretkikehara)
Added an icon
Various documentation fixes
Fixed another typo in README
- Refactored code
- Added a GIF to demonstrate how it works
Added Encode as URI
and Decode as URI
commands
Fixed a typo in README
Initial release