Open monsieurm opened 7 years ago
Can’t see video, seems like insufficient rights
Sorry about that https://www.youtube.com/watch?v=ifBSlBak2Ag
Make sure you have Format Line Breaks option enabled in Emmet preferences
Yes I have :(
Try to enable Packages > Keybinding Resolver and check which action is invoked when you hit Tab between opening and closing tags
I have modified the shortcut for Emmet, I'm using 'ctrl-e'. This is the same thing when I set 'tab' for Emmet.
Thanks for your support
Seems like you didn’t set document syntax to HTML. Formatted line breaks works for HTML/XML syntax only
In the example of the video, at the bottom of the window is indicated HTML.
Otherwise I also use PHP documents formatted in PHP.
It never worked on Atom, but it worked perfectly on Coda. https://www.youtube.com/watch?v=ZCp6AfoGERQ
I really do not understand why :(
According to keymap, in order to have formatted line break to work, you must have HTML syntax and autocomplete popup not visible.
If it still doesn’t work, please create a new video for file with HTML syntax and enabled Kybindings resolver
Ok.
Atom from scratch and just Emmet (with HTML syntax), works fine.
It's not possible to use autocomplete popup and Emmet ?
Thanks for your support
@monsieurm Not sure if you ended up solving the issue, but I struggled with this for quite a while before figuring it out. When you disable keybindings for Emmet (which I did to unmap Tab) you also end up disabling the keybinding for inserting a formatted new line (Enter by default). To reenable the behavior, just copy the keybinding into your keymap.cson file and you'll be good to go! This will not work while the autocomplete popup is showing on screen, but I personally have yet to find an instance where it is after expanding an Emmet abbreviation.
For your reference, here is the specific keybinding to copy...
'atom-pane atom-text-editor[data-grammar~="html"]:not([mini]):not(.autocomplete-active), atom-pane atom-text-editor[data-grammar~="xml"]:not([mini]):not(.autocomplete-active)':
'enter': 'emmet:insert-formatted-line-break-only'
In hindsight, I kinda wish this consequence was documented somewhere, as it would have saved me literally weeks of searching.
@rrapstine Yeah ! This is the solution ! Now I will unlearn the way I did :)
Thank you so much !
Hi
I'm new on Atom, I love it but I have a problem with the Emmet indent.
Here a video with the issue, I expend with Emmet, but with or without the problem is here.
https://www.dropbox.com/playlist/sharing/indent.mp4?_subject_uid=19348716
Before Atom I used Coda and Emmet worked fine.
Have you an idea ?
Thanks