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 files Emmet isnt work! #44

Closed
duleigiser opened this issue Feb 20, 2017 · 8 comments
Closed

*.vue files Emmet isnt work! #44

duleigiser opened this issue Feb 20, 2017 · 8 comments

Comments

@duleigiser
Copy link

In template tag, Emmet syntax is not available.sucks!

@cupools
Copy link

cupools commented Feb 20, 2017

Add the following to your setting and it works for template, but not stylesheet.

"emmet.syntaxProfiles": {
  "vue": "html"
},

@huanguolin
Copy link

Me too when i update to 0.3.3. So i rollback to 0.3.2.

@octref octref closed this as completed in f69f2cd Feb 20, 2017
@octref
Copy link
Member

octref commented Feb 20, 2017

This is fixed in 0.3.5. Try update.

Basically, region between <template> is now marked as vue-html instead of html to provide better support for vue's interpolation and directives.

You need to add this to your setting:

"emmet.syntaxProfiles": {
  "vue-html": "html"
}

vetur

@duleigiser
Copy link
Author

it works!thanks~

@murat
Copy link

murat commented Jun 22, 2017

Hi @octref ✋ , I did it.

It works for emmet but does not working vue snippets at this time. Is there any solution for use vue snippets + emmet features both?

image

Edit:
I'm using a scaffold snippet for now.

    // user snippets/html.json
	"Vuejs scaffold": {
		"prefix": "scaffold",
		"body": [
			"<template>",
				"\t<div id=\"\">",
				"",
				"\t</div>",
			"</template>",
			"",
			"<script>",
				"\texport default{",
					"\t\tname: '',",
					"",
				"\t};",
			"</script>",
			"",
			"<style lang=\"scss\">",
			"",
			"</style>"
		],
		"description": "Create vuejs scaffold"
	},

@octref
Copy link
Member

octref commented Jun 22, 2017

If you are using "emmet.useNewEmmet", it's not supported in vetur yet but probably will be next month.

@octref
Copy link
Member

octref commented Jun 22, 2017

You can subscribe to microsoft/vscode#29114

@murat
Copy link

murat commented Jun 23, 2017

I don't know what features are included new emmet. But I did set "emmet.useNewEmmet" as false and it works now. Thank you @octref God bless you. 😄

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

No branches or pull requests

5 participants