Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vue global variable code completionNew to Visual Studio Code? Get it now.
vue global variable code completion

vue global variable code completion

lcn

|
7 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vue2-global-variable-code-completion

It can only be defined in the main.js file

  • support Definition mode

    • vue2
      • Vue.prototype.xxx = ...
      • Object.assign(Vue.prototype, {...})
    • vue3
      • app.config.globalProperties.xxx = ...
  • import mode

    • import xxx from 'xxx'
    • import { xxx } from 'xxx'
    • import * as xxx from 'xxx'
  • default trigger strings:

    • this.
    • proxy.
  • user can config trigger strings in vscode settings

{
	"vuePrototypeCompletion.triggerStrings": ["this.", "proxy.", "vm."]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft