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

Html Snippets not working in Laravel Blade PHP File #52

Open
MetanoiaRichi opened this issue Nov 27, 2017 · 10 comments
Open

Html Snippets not working in Laravel Blade PHP File #52

MetanoiaRichi opened this issue Nov 27, 2017 · 10 comments

Comments

@MetanoiaRichi
Copy link

Hi! I love your extension. It's really useful but I can't get it to work at files ending with blade.php
How do I solve this ? Thank you 😃

@tereaksmey123
Copy link

tereaksmey123 commented Dec 24, 2017

@MetanoiaRichi i had same problem but i test it and now it work just add another one
{ "language": "blade", "path": "./snippets/snippets.json" }
we can have snippet in blade laravel i think it check only 1st dot that why "blade" work 😄

@BagasMuharom
Copy link

This one is work for me
"files.associations": { "*.blade.php" : "html" }

@tereaksmey123
Copy link

and now i stop using this i don't wanna have many autocomplete pop so using default vscode emmet is do the same auto html for just register:

"emmet.includeLanguages": {
        "blade":"html"
    },

when u lazy write close tag and nested tag emmet solve problem.
Hope it helpful 😄

@BagasMuharom
Copy link

@tereaksmey123 it's a good way, I have tested it, and it is work

@tenlisboa
Copy link

and now i stop using this i don't wanna have many autocomplete pop so using default vscode emmet is do the same auto html for just register:

"emmet.includeLanguages": {
        "blade":"html"
    },

when u lazy write close tag and nested tag emmet solve problem.
Hope it helpful 😄

It`s works fine!!

@Foysalmeazi
Copy link

Foysalmeazi commented Mar 28, 2020

"emmet.includeLanguages": {
"blade":"html"
},

Where and How to use this code?

@Ali-hd
Copy link

Ali-hd commented Aug 21, 2020

"emmet.includeLanguages": {
"blade":"html"
},

Where and How to use this code?

On Visual Studio Code you can go to file>preferences>settings
then use the search bar to search for "emmet.includeLanguages" or "files.associations"

@soumik9
Copy link

soumik9 commented Jul 13, 2021

and now i stop using this i don't wanna have many autocomplete pop so using default vscode emmet is do the same auto html for just register:

"emmet.includeLanguages": {
        "blade":"html"
    },

when u lazy write close tag and nested tag emmet solve problem.
Hope it helpful 😄

Thanks its work for me

@Nyavowoyi
Copy link

and now i stop using this i don't wanna have many autocomplete pop so using default vscode emmet is do the same auto html for just register:

"emmet.includeLanguages": {
        "blade":"html"
    },

when u lazy write close tag and nested tag emmet solve problem. Hope it helpful 😄

Well, I must say that this did the work but for those who are still struggling with how to implement this solution,
open a normal blade file and look at the status bar of your Visual Studio Code editor. You should see that the text "Blade" somewhere on the status bar.

image

Click on it and you would see:

image

Choose Configure 'Blade' language based settings...

A new tab opens with some configurations set

image

Ensure you add this to your file prefarably, before the last closing }

"emmet.includeLanguages": {
        "blade":"html"
    },

Save the file, close your Visual Studio Code editor and open it again. That's all.

You can now use the html intellisense in your blade files.

Enjoy :)

@KannaHashi
Copy link

image

can't find 'blade' language based here

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

9 participants