Skip to content
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

Can I disable autoprefixer ? #499

Closed
MarvinXu opened this issue Apr 23, 2017 · 10 comments
Closed

Can I disable autoprefixer ? #499

MarvinXu opened this issue Apr 23, 2017 · 10 comments

Comments

@MarvinXu
Copy link

MarvinXu commented Apr 23, 2017

for example, when I type 'bxb', it creates

  -webkit-box-sizing: border-box
  -moz-box-sizing: border-box
  -ms-box-sizing: border-box
  box-sizing: border-box

but nowadays we have webpack do such thing. So is there a switch to turn off autoprefixer?

@albrin
Copy link

albrin commented Jun 2, 2017

If you are using a Visual Studio Code, added the setting to the settings.json (user or workspace settings).

{
    "emmet.preferences": {
        "css.autoInsertVendorPrefixes": false
    }
}

2017-06-02_18-05-47

css.autoInsertVendorPrefixes
Automatically generate vendor-prefixed copies of expanded CSS property. By default, Emmet will generate vendor-prefixed properties only when you put dash before abbreviation (e.g. -bxsh). With this option enabled, you don’t need dashes before abbreviations: Emmet will produce vendor-prefixed properties for you.

In other IDEs or Code Editors you can try to create a settings file (preferences.json) in the root directory of the project. More information you can find on the link — https://docs.emmet.io/customization/preferences/

@MarvinXu
Copy link
Author

@albrin thx a lot!

@grantand
Copy link

@albrin, подскажите, может вы знаете как отключить префиксы но уже в брекетсе?

@chrisnajman
Copy link

chrisnajman commented Feb 22, 2018

To get rid of auto prefixes in Sublime Text click on Preferences > Package Settings > Emmet > Settings-User and add the following snippet:

{
	"preferences": {
		"css.autoInsertVendorPrefixes": false
	},
}

@GoOz
Copy link

GoOz commented May 30, 2018

Hi there, I have a weird issue related to this with Sublime Text.

I did the change in the User settings

{
  "preferences": {
    "css.autoInsertVendorPrefixes": false
  }
}

And it kinda works. When i type d:f it doesn't add the vendor prefixes but I type df it adds them. I don't know if it's related to the fuzzy search or what but it's bugging I think.
emmetvendorprefixes

@mikitachyzhyk
Copy link

mikitachyzhyk commented Feb 8, 2019

I had the same issue in Sublime Text.

It works fine for me

{
	"preferences": {
		"css.autoInsertVendorPrefixes": false,
		"caniuse.enabled": false
	},
}

@GoOz
Copy link

GoOz commented Feb 8, 2019

@KitCarver My hero!
Do you know, by any chance, where does that caniuse option come from?

@mikitachyzhyk
Copy link

Yes, I found it here: https://docs.emmet.io/customization/preferences/

caniuse.enabled
Enable support of Can I Use database. When enabled, CSS abbreviation resolver will look at Can I Use database first before detecting CSS properties that should be resolved

@sergeche
Copy link
Member

Automatic prefixes are removed in Emmet v2

@T04435
Copy link

T04435 commented Aug 26, 2020

For IntelliJ users just disable Auto insert css vendor prefixes under:

Preferences > Editor > Emmet > CSS

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants