A Swiss Army knife for developers.This is the vscode extension version of Devtoys!
- Base64
- HTML
- URL
- JWT
- JSON < > YAML
- Number Base
- UUID
- Hash
- Regex Tester
- Color Blindness Simulator
- Qrcode
- and more!
You can click this button to automatically run that you want tool!
To set up your environment to develop DevToys, run yarn
.
Unlimited quality, quantity required, welcome contribution, use React or Svelte or Vue
Example: add JWT Encoder/Decoder tool
yarn new
❯ yarn new
? Tool label JWT
? Tool panel title JWT Encoder/Decoder
? Tool category Encoder/Decoder
? Tool webview framework React
✔ ++ /webview/pages/Jwt.tsx
✔ ++ /webview/components/Jwt/index.tsx
✔ ++ /src/Panel/Jwt.ts
✔ ++ /webview/components/Jwt/locales/en.json
✔ ++ /webview/components/Jwt/locales/zh-CN.json
✔ ++ /webview/components/Jwt/i18n.ts
✨ Done in 15.52s.
- Add
PanelType
insrc/shared.ts
enum PanelType {
...,
jwt = "jwt"
}
- Add tree item in
src/explorer/explorerNodeManager.ts
, JWT tool is a Coders category, so edit
const coders: IToolData[] = [
...,
{
label: i18n.t("view.devtoys.coders.jwt.label"),
tooltip: i18n.t("view.devtoys.coders.jwt.tooltip"),
panel: PanelType.jwt,
}
]
- Show tool in
src/commands/showTool.ts
switch (node.type) {
...
case PanelType.jwt:
jwt.createOrShow(context.extensionUri);
break;
}
- Make JWT tool and i18N key, then test the tool!
NOTE: webview i18n file in
webview/components/TOOLNAME/locales
, extension i18n file inlocales