Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue directive code snippet does not work #2568

Open
4 tasks done
lincenying opened this issue Dec 15, 2020 · 0 comments
Open
4 tasks done

vue directive code snippet does not work #2568

lincenying opened this issue Dec 15, 2020 · 0 comments

Comments

@lincenying
Copy link

lincenying commented Dec 15, 2020

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS
  • Vetur version: 0.31.3
  • VS Code version: 1.52.0

Problem

snippets/vue-html.json add

"v-for": {
        "prefix": "vFor",
        "body": [
            "v-for=\"(${1:item}, ${2:index}) in ${3:items}\" :key=\"${4:index}\""
        ],
        "description": "Expects: Array | Object | number | string"
    }

The blank space + v: No custom code snippet found

image

tab + v: Working fine

image

enter + v: Working fine

image

Outside the label: Working fine

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants