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 tab-key not working #18445
Comments
Can you check your settings to ensure When you have the cursor at the end of the abbreviation does running the command |
|
Can you add a screenshot of the error that you see which says "more details in the log"? |
@setuun Any updates? |
Sorry for my late response, but i was sick. After i started the portable version on another pc, the emmet suddenly is working again. I try to reproduce the error again. When i get it, i will immediately post it here. |
Sorry to hear that, hope you feel better. |
@ramya-rao-a I'm also getting this issue. OS: macOS Sierra v10.12.5 |
Looks like the
I removed
|
@chrisdothtml what is the date on your insiders? I had fixed this on Thursday (25th May) 92be0f0 |
No updates available |
Ah, The time zone difference. My fix should have been picked up for the Friday 26th. Looks like there was no build out then. There will be one on Monday. Can you check again then? |
Yep, got the update. It's fixed in the default keybindings now 👍 |
My project is in ReasonML. I have configured settings like:
I can use tab to expand tags in jsx file but not in Reason .re file. Tab is treated to move cursor ahead. |
|
Somewhere else I read that useNewEmmet being true makes tab key not to work. So I made it clear that the setting is so (which is the default value, and I did not change that). Now the next scenario is:
These settings make me at least |
Do you have We are deprecating the "expand emmet on tab" feature. Please read https://code.visualstudio.com/updates/v1_13#_emmet-abbreviation-expansion-in-suggestion-list to know more about why we are doing this. A workaround is to use the suggestion list or bind a new keyboard shortcut for the emmet expand command |
Update: I don't know what happened, but after I started my (hibernated) pc today, there are auto suggestions, and expansion of tags is working. And, I will certainly bind a new keyboard shortcut if really needed, as you suggested. Thanks :) |
@vinaydate Great, Happy Coding! |
Just got the newest update yesterday and now experiencing this bug. |
@Jujunol Have you set |
Why was the default emmet.triggerExpansionOnTab changed to false? I've been using it since it first came out and it's always defaulted to true. This has caused no end of frustration this evening. |
@bowtiebeej You can read about the why's and the how's in the Release Notes for 1.15 or the Emmet 2.0 blog For current state of affairs with Emmet in VS Code read the new docs page we have set up at https://code.visualstudio.com/docs/editor/emmet |
@ramya-rao-a Thanks for the suggestion. I just switched to Sublime Text and installed the emmet extension. Pretty much the same key shortcuts so it's a fantastic alternative! |
Default emmet setting is false. |
So a bit of a new problem I have the emmet.triggerExpansionOnTab set to true but sometimes when I have content in the {} it throws an error "Failed to expand abbreviation". This has happened a few times, it's not consistent or at least not that I can find. It usually happens when I past information into the {} in something like a p{}. But it doesn't always error and if I do p{} with nothing in the {} it works. |
@bowtiebeej even if you can share the contents inside the |
Is there a limit on how much can be in the {}? That might the issue. I didn't look at it from that perspective. It's rather large but I can post it. When I copied smaller amounts of text it has worked. |
Are you able to repro it consistently with the large text? |
Yes, though I didn't think about that being the cause at the time so I didn't test to find out how large the text amount needed to be. I'll test again when I get home tonight and let you know. Should I log a new issue or report that here? |
Log a new one |
As soon as i activate emmet...
{ "key": "tab", "command": "editor.emmet.action.expandAbbreviation", "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorHasMultipleSelections && !editorHasSelection && !editorReadonly && !editorTabMovesFocus" }
...the tab-key stop working.
Here a small video, where u can see, what i do and which expansions i use:
https://youtu.be/RDxf_KdAMRU
The text was updated successfully, but these errors were encountered: