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

Option to disable Vetur's snippets #698

Closed
3 tasks done
chrisvfritz opened this issue Feb 19, 2018 · 6 comments
Closed
3 tasks done

Option to disable Vetur's snippets #698

chrisvfritz opened this issue Feb 19, 2018 · 6 comments

Comments

@chrisvfritz
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: All
  • Vetur version: 0.11.7
  • VS Code version: 1.20.0-insider

Problem

I really like that Vetur includes a great set of snippets out-of-the-box and I'm glad they are enabled by default, but snippets can also be very personal or project-specific. Large teams, especially, sometimes use custom snippets as a way to guide team members to use internal conventions. In these cases, the presence of Vetur's own snippets can create confusion about which to use.

I'm not sure if this is possible in VS Code, but could Vetur provide an option to disable its own snippets, for users that prefer to write their own?

@octref
Copy link
Member

octref commented Mar 6, 2018

vetur.completion.useScaffoldSnippets has been added.

@chrisvfritz
Copy link
Author

Thank you! 🙏

@geozak
Copy link

geozak commented Aug 11, 2019

This was replaced in: 5438590

@octref
Copy link
Member

octref commented Aug 12, 2019

@geozak Thanks. Just for those who came to here as well, you can use

{
  "vetur.completion.scaffoldSnippetSources": {
    "workspace": "",
    "user": "",
    "vetur": ""
  }
}

to disalbe all snippets

@chrisvfritz
Copy link
Author

Out of curiosity, why were strings that are either empty/non-empty with emoji defaults used for these settings, instead of booleans that are either true or false? 😄 I got this question in a workshop recently and I didn't know the answer.

@octref
Copy link
Member

octref commented Oct 11, 2019

You can put any text / emoji there — I chose a few emoji for good visual scannability.

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

4 participants