Pretty weird that no one said anything about this one: github.com/sergeche/emmet-sublime
Did anyone tried? Any impressions?
Pretty weird that no one said anything about this one: github.com/sergeche/emmet-sublime
Did anyone tried? Any impressions?
As i know it is still in beta
waiting for release
this tool should be even more powerful than zen coding
The emmet plugin will eventually supplant the existing, end of line, ZenCoding plugin for SublimeText, which will never receive another update.
I recommend testing it out and filing feedback.
Iāve been using it already a bit. Looks really solid. p10 ā tab
to generate padding:10px;
is perfect!
There are some issues with snippets in HTML, which stop working with emmet if the default tab is used for completions github.com/sergeche/emmet-sublime/issues/9 - I had to change this behaviour.
Can anyone explain how to make it work?
I am installing plugin via package control, but sublime has no reaction - emmet hot keys don`t work, there is no new commands in command panel and there is no entry in console at program start up.
I used to be able to create a new document and hit shift-control-option-H to set the language to html and insert an html5 basic skeleton. With emmet installed this doesnāt work.
I have to save the empty document as an html file, then I can type html:5 TAB to get the same code. Any idea why?
It also doesnāt show up for me in Package Control. I had to clone it from github.
It does say on the readme partā¦
[quote]How to install
Clone git repo into your packages folder (in ST2, find Browse Packagesā¦ menu item to open this folder)
Restart ST2 editor
Or with package control:
Package Control: Add Repository github.com/sergeche/emmet-sublime
Package Control: Install Package emmet-sublime
Restart ST2 editor
You should remove or disable previous Zen Coding plugin, installed from Package Control, in order to operate properly.[/quote]
Iāve been using it for a couple of days and Iām loving those new smart snippets (p10 -> padding: 10px;), but Iāve noticed some annoying issues with the new āexpand unknown tagsā behavior. If I try to expand āphpā in a html scope, iāll get instead of <?php ?>.
@weslly: i had the same issue. You can either disable completion or add this into emmet.sublime-settings from user directory (if itās not there, copy it from emmet install folder):
"snippets": {
// custom snippets definitions, as per https://github.com/sergeche/zen-coding/blob/v0.7.1/snippets.json
"html": {
"abbreviations": {
"php": "<?php"
}
}
},
This will do.
If still doesnāt play nicely, you can try to disable tab abbreviation completely:
"disable_tab_abbreviations": true
(in preferences file) Or bind it to a different shortcut.
I patched ZenCoding lib for the old plugin to only work with a known set of tags for this reason. I found it too greedy
otherwise.
Remember to keep serge in the loop:
github.com/sergeche/emmet-subli ā¦ state=open
I donāt know that he comes here that often.
Iāve just switched from ZenCoding to Emmet, but now I canāt do CTRL + arrow key up/down for moving the viewport up and down. Does anyone know how to regain that functionality, without disabling emmet?
[quote]Increment/Decrement Number actions:
Increment by 1: Ctrl+ā
Decrement by 1: Ctrl+ā
Increment by 0.1: Alt+ā
Decrement by 0.1: Alt+ā
Increment by 10: ā„āā / Shift+Alt+ā
Decrement by 10: ā„āā / Shift+Alt+ā
[/quote]
Hrmm, yeah, it looks like it binds over it.
Emmet has lots of actions so itās nearly impossible to create a keymap which can be convenient and not override any of your keyboard shortcut youāre using every day.
For this case, Iāve added ability to disable default Emmet shortcuts in user preferences: github.com/sergeche/emmet-subli ā¦ -shortcuts
Hi everyone.
I just started to learn HTML, and canāt figure out how to instal Zen coding in Sublime Text 2. Iāve tried this packagecontrol.io/installation#st2 but it didnāt work.
Thanks.