SathyaSrini / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Sublime Text 2 CSS Abbreviations not working #319

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Maybe someone from here knows an answer to my question. I've installed Zen 
Coding on Sublime Text 2 via Package Control and I'm trying to use css 
abbreviations.

If I write "h" + Tab in a .html file, between (<style></style>) I get a 
"height: ;" as I was expected but if I do the same thing in a .css file I get 
"h1" which is not what I expected from Zen Coding.

The same thing happens with all CSS abbreviations. W + TAB, BG + TAB, none of 
those work properly.

Any help will be much appreciated.

Thanks

Original issue reported on code.google.com by alexandr...@gmail.com on 3 Feb 2012 at 1:19

GoogleCodeExporter commented 9 years ago
the same problem like yours

Original comment by dongweil...@gmail.com on 29 Mar 2012 at 3:01

GoogleCodeExporter commented 9 years ago
The shortcuts work when you press CTRL + ALT + Enter (it will prompt you for a 
"Koan"), but they don't work directly when typing, TAB just brings the standard 
CSS suggestions.

Original comment by sinisasa...@gmail.com on 10 Apr 2012 at 12:18

GoogleCodeExporter commented 9 years ago
I don't know if this was exactly your trouble but "HTML5 bundle" that can be 
installed through the Sublime Package Control conflicts the keyboard shortcuts 
for Zen. After disabling it TAB works normally as well as all of the CSS 
shortcuts.

Original comment by sinisasa...@gmail.com on 10 Apr 2012 at 12:29

GoogleCodeExporter commented 9 years ago
Unfortunately, it is still buggy. Sometimes it works, and sometimes it doesn't, 
I really can't tell why... Please help.

Original comment by sinisasa...@gmail.com on 10 Apr 2012 at 1:37

GoogleCodeExporter commented 9 years ago
I think I found what's bugging it.

The reason why abbreviations did work/not work (e.g. height on "h") was because 
of my code formatting. When I used multi-line formatting everything worked fine 
but when I used single line, which is my usual formatting, the sublime text's 
standard suggestions showed up instead of the Zen AND/OR it starts to behave 
strangely.

Hope this helps.

Original comment by sinisasa...@gmail.com on 11 Apr 2012 at 8:41