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

Emmet support for PHP #12325

Closed
heckctor opened this issue Sep 20, 2016 · 16 comments
Closed

Emmet support for PHP #12325

heckctor opened this issue Sep 20, 2016 · 16 comments
Assignees
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster

Comments

@heckctor
Copy link

  • VSCode Version: 1.5.2
  • OS Version: Ubuntu 16.04

Steps to Reproduce:

I will like to emmet works in php! ;)

@chrmarti chrmarti changed the title emmet works in php Emmet support for PHP Sep 20, 2016
@chrmarti chrmarti added the feature-request Request for new features or functionality label Sep 20, 2016
@gregvanl
Copy link

Will the emmet.syntaxProfiles setting help you? You can associate Emmet profiles like "html" and "css" with a language identifier.

{
"emmet.syntaxProfiles": {
"php": "html"
}
}

@mrmlnc
Copy link
Contributor

mrmlnc commented Sep 20, 2016

Emmet should work with PHP without settings in VS Code above 1.5.0 version. May be you have file.associations or emmet.exclude? You can provide your settings?

@heckctor
Copy link
Author

Thanks !! :D @gregvanl

@chrmarti
Copy link
Collaborator

@heckctor Does this solve the issue for you?

@chrmarti chrmarti self-assigned this Sep 24, 2016
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Sep 24, 2016
@heckctor
Copy link
Author

heckctor commented Oct 8, 2016

@chrmarti Yes, thanks!

@ramya-rao-a
Copy link
Contributor

From VS Code 1.15 onwards, no setting is needed to get Emmet to work in php files.

@a-eid
Copy link

a-eid commented Aug 13, 2017

@ramya-rao-a its not working for me thou , I'm on 1.15 ( ubuntu ) ;
tegs expand but not classes or ids .. etc

@a-eid
Copy link

a-eid commented Aug 13, 2017

@gregvanl where do I add that ?

@ramya-rao-a
Copy link
Contributor

@a-eid I think the problem is that emmet is not getting activated yet...

Can you open an html file and then go back to your php file and try again?

@a-eid
Copy link

a-eid commented Aug 13, 2017

@ramya-rao-a "php.suggest.basic": false resolved the problem.

@a-eid
Copy link

a-eid commented Aug 13, 2017

@ramya-rao-a

whenever I try type something (.class for example) that contain an operator (minus sign) (col-md-8) or a number it doesn't trigger emmet . the php drop down suggestion appears and pressing tab triggers <?php


how to fix that ?

@jens1o
Copy link
Contributor

jens1o commented Aug 13, 2017

That's a suggestion from the php-language-server by @felixfbecker and there's no way to get rid of that suggestion, yet.

@ramya-rao-a
Copy link
Contributor

@a-eid

Turns out the issue is not just with the - sign. Any emmet abbreviation with class operator doesnt seem to show up in the suggestions. I have logged #32423 for it.

I also noticed that the ordering of emmet suggestions is different in php. Logged #32424 for that

@andremacola
Copy link

@a-eid if you put a . at the final it works.

.col-md-8. (tab)

@mettaworldjon
Copy link

Inside of vscode it is ".." instead of a single "."

@rodrigocarrillo94
Copy link

Hi, please translate this message to English Jeje

Al actualizar Visual Studio Code no podía auto-completar etiquetas HTML en archivos .php (en Laravel, archivos .php - Blade), para solucionar esto cambie lo siguiente:

"emmet.triggerExpansionOnTab": true (antes estaba en "false")

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

10 participants