Skip to content

提供了快捷键创建变量的能力,解决了来回滚动到指定位置,通过输入去创建变量 | Provides the ability to create variables with shortcut keys, solving the problem of scrolling back and forth to a specified position and creating variables through input

License

Notifications You must be signed in to change notification settings

Simon-He95/fast-create-variable

Repository files navigation

fast-create-variable

English | 简体中文

Select the variable name to quickly provide the creation type, such as ref, computed, methods, function, arrowFunction, watch, reactive, etc. According to whether it is currently vue2 or vue3, generate the corresponding variable and jump to the newly created variable location.

Explain the function of this plug-in. Normally, when we write code, we write template first, such as el-input and then write events such as v-model or @click, and then go to the top to define ref, or function. Through this plug-in, you can directly generate the corresponding variable or method in js logic, and then you can initialize the variable value and supplement the function logic according to your needs, which will save you a lot of time and initialize the coding burden of variables.

VUE

vue

JSX

jsx

🚀 Support

  • vue
  • jsx (react)
  • svelte

⌨️ Keybindings

  • win: ctrl+g
  • mac: cmd+g

Configuration

    "configuration": {
      "type": "object",
      "title": "fast-create-variable",
      "properties": {
        "fast-create-variable.atTop": {
          "type": "boolean",
          "default": false,
          "description": "Generate data, methods, etc. for vue2 at the top or at the bottom"
        },
        "fast-create-variable.sound": {
          "type": "boolean",
          "default": false,
          "description": "Play sound when variable is created"
        }
      }
    }

buy me a cup of coffee

Sponsors

About

提供了快捷键创建变量的能力,解决了来回滚动到指定位置,通过输入去创建变量 | Provides the ability to create variables with shortcut keys, solving the problem of scrolling back and forth to a specified position and creating variables through input

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published