-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Complete Emmet 2.0 support #27697
Comments
Just to be sure the follow will be considered. Currently, users need to assign custom keybinding to Emmet commands to use it in a efficient workflow. Question 1I see among the available commands that Emmet has 2 flavors for some of them such as:
Do they refer to new vs old emmet implementation? Witch one to use in future? Question 2If user set this custom keybinding
What would be the way to only enable this keybinding according to context (when emmet can effectively use this command)? This would allow user to use the same keybinding for anything else or keep the default one working when the emmet context if FALSE (typically in this case: not in emmet supported language && caret not around numbers).
|
@freMea To your first question:
This is done so that users who have keybindings to the To your second question: The I don't think using cursor position is possible in the when clause. Hope that helps |
Thanks for your answers. The problem with It could be partially solved if
But it wouldn't be as powerful and smart as a contextual Boolean state of command at caret position (instead of language used by file). It would allow using same keybinding for different commands in the same file depending on emmet context. |
The new Emmet does not work in php document with embedded html. Can PHP be added to the supported language?? A test case.
|
@nanaasumadu Have you tried adding the below setting?
|
No, it doesn't work.
Steps to Reproduce:
|
@nanaasumadu Can you try reloading VS Code after you added the syntaxProfiles setting? |
Yes, I have reloaded VS Code and still does not work. |
@nanaasumadu It works fine for me. Can you check if the language mode of your file? @jens1o Can you give it a try? i.e Set the below, reload VS Code and see if you get emmet autcompletions in a php file?
|
The language mode is set to PHP. If I change the language mode to HTML, emmet auto-completion works but there is no syntax highlighting for PHP. |
@nanaasumadu To ensure that no other extensions is interfering here, can you run |
Done that and still doesn't work. The only option left for me now is to completely re-install code-insiders. Something definitely is not right. BTW this is my complete settings.json file: // Place your settings in this file to overwrite the default settings |
I have re-installed vscode insider and the problem still persist. |
@ramya-rao-a Result: It works. But...
... will create a new issue for each one. |
Thanks the issue has been resolved for me. The followed the steps below:
|
Good job. Thanks for your hard work for Code 1.14.0. |
Thanks @freMea and Happy Coding! |
Contd. from #21943
Emmet Actions:
Port current Emmet customizations to the new model:
Emmet: Expand Abbreviation
command in languages that are not supported by emmet explicitly like php 1.13.0 | New Emmet expansion suggestions don't honor emmet.syntaxProfiles setting #28286emmet.variables
emmet.extensionsPath
for custom variables and profiles "emmet.extensionsPath" incompatible with "emmet.useNewEmmet": true #28465emmet.exlcudeLanguages
Optimize Emmet expansions
Others:
Deferred Emmet Actions:
The text was updated successfully, but these errors were encountered: