Skip to content

Method/Variable Generate

Question

When you develop a page with Vue, will it be possible that every time you define a variable or method in the template, you need to scroll to the script to define a variable or method?
If you pay attention, you'll notice that this process is very frequent in your development process.

mv

Now for you, there's a way to get ten times more efficient.

Usage

Press and hold the shortcut directly on a variable or method(alt + enter). Plugins automatically help you generate variables and methods.
Combined with the return shortcut [alt + leftArrow], you can define variables and methods super quickly.

vue2 generate

mv-after

vue3 generate

mv-after

form field generate

mv-after

self shortcut

it can be searched in the keyboard shortcut of vscode with enhance, then right-click to modify the binding key to define your own shortcut alt-enter