![]() To find the language identifier of your programming language, check VS code official docs. The second input with 'Value' placeholder will be the language identifier of an Emmet supported mode (e.g. ![]() The first input with 'Key' placeholder will be the language identifier of the programming language where you want Emmet abbreviations to work on. Just to ensure nothing goes wrong again, included PHP as a language in 'Include Languages' setting. If Emmet abbreviations are still not working on your IDE, do the next instruction. Now, you should be able to use Emmet in PHP. In that case, remove 'php' from 'Exclude Languages' option by clicking the 'x' icon to the extreme right on hover. ![]() ![]() Though PHP as a language is enabled to allow Emmet abbreviations and snippets by default, sometimes something might go wrong (like in mine) and PHP may now be excluded from "emmet.includeLanguages" JSON object key as is shown below in a screenshot of my settings view in VS code. As a workaround, you can try modifying Zen HTML live templates context in Settings Editor Live Templates by appending Other to it, like: but this has to be done for each template. I was searching for the answer to a similar problem and what I found might be useful to someone else. php files are simple text files highlighted using textmate bundles HTML language is not injected there, so advanced HTML features do not work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |