Skip to content

Fu-Hua-ShangXian/vscode-devtoys

 
 

Repository files navigation

DevToys for VSCode

A Swiss Army knife for developers.This is the vscode extension version of Devtoys!

Demo

  • Base64
  • HTML
  • URL
  • JWT
  • JSON < > YAML
  • Number Base
  • UUID
  • Hash
  • Regex Tester
  • Color Blindness Simulator
  • Qrcode
  • and more!

all tools

Features

Search Tool

search tool

Automatically

You can click this button to automatically run that you want tool!

automatically

Development

To set up your environment to develop DevToys, run yarn.

Unlimited quality, quantity required, welcome contribution, use React or Svelte or Vue

Add New Tool

Example: add JWT Encoder/Decoder tool

  1. 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.
  1. Add PanelType in src/shared.ts
enum PanelType {
  ...,
  jwt = "jwt"
}
  1. 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,
  }
]
  1. Show tool in src/commands/showTool.ts
switch (node.type) {
  ...
  case PanelType.jwt:
    jwt.createOrShow(context.extensionUri);
    break;
}
  1. Make JWT tool and i18N key, then test the tool!

NOTE: webview i18n file in webview/components/TOOLNAME/locales, extension i18n file in locales

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 65.6%
  • Vue 14.7%
  • JavaScript 7.7%
  • Svelte 7.2%
  • CSS 2.5%
  • Handlebars 2.2%
  • Shell 0.1%