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

[FR] Customizable Scaffold Snippets using .vue files #183

Closed
wenfangdu opened this issue May 18, 2021 · 3 comments
Closed

[FR] Customizable Scaffold Snippets using .vue files #183

wenfangdu opened this issue May 18, 2021 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@wenfangdu
Copy link
Contributor

I haven't found Vetur's Customizable Scaffold Snippets equivalent in Volar, I think its main advantage is:

You can use everything that's allowed in VS Code Snippet Syntax. The good thing is, you write them in .vue files instead of .json files, and you don't need to escape special characters.

Could you please consider adding it?

@johnsoncodehk
Copy link
Member

Thanks for your suggestion, but I think plugin specific things is not good for development ecology, I think it is simpler and more appropriate to build a .vue -> .json converter.

@johnsoncodehk johnsoncodehk added enhancement New feature or request wontfix This will not be worked on labels May 18, 2021
@wenfangdu
Copy link
Contributor Author

wenfangdu commented May 23, 2021

I've gone ahead and created a snippet generator extension for this. It supports code to JSON conversion.

@johnsoncodehk
Copy link
Member

Great work! Added to readme.

I hope there is an online converter for two-way conversion, which can help edit and preview existing VSCode snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants