Sublime Forum

Disable ZenCoding CSS completion

#1

Hi everyone,
I’m curious if there is an elegant way to disable the CSS autocompletion for ZenCoding. I have various custom CSS snippets in my User folder and find that ZenCoding is overwriting them. I have currently commented out the css part in zen_settings.py, but was wondering if there was a more elegant way.

'css': {
		'extends': 'common',
		'filters': 'html,css',
		'snippets': {
			# "@i": "@import url(|);",
			# "@m": "@media print {\n\t|\n}",
			# "@f": "@font-face {\n\tfont-family:|;\n\tsrc:url(|);\n}",
			# "!": "!important",
			# "pos": "position:|;",
			# "pos:s": "position:static;",
			# "pos:a": "position:absolute;",
			# "pos:r": "position:relative;",
			# "pos:f": "position:fixed;",
			# "t": "top:|;",
			# "t:a": "top:auto;",
.... (continues)

Thanks

0 Likes

#2

Heh, I had exactly the same issue: my snippets overwritten by zen, and I started to think that I’m crazy! :ugeek:

I actually use Zen only for html-related stuff.

My solution: edit zen-coding.sublime-settings (the one from your User directory!) and do this:

    "my_zen_settings" : {
        "css": {
            "filters": "foo"
        }
    }

Boom, just works!

0 Likes

#3

Ah…much better! Thank you for that. Yeah, I’m in the same boat as you and only use ZC on html related stuff, and have my own custom set of CSS. It drove me mad trying to find out why my CSS snippets weren’t working anymore.

Thanks again!! :mrgreen:

0 Likes