8

Currently I have jsx in my js files but when using web-mode it is only possible to have single quotes or double quotes for html attributes with this setting the web-mode-auto-quote-style setting, e.g:

(setq web-mode-auto-quote-style 2) ; use single quotes

I would like to disable it all together but how is this possible when it only takes 1 or 2 as a value.

dagda1
  • 595
  • 1
  • 3
  • 16

1 Answers1

12
(setq web-mode-enable-auto-quoting nil)

Add double quotes after the character = in a tag.

xuhdev
  • 1,839
  • 13
  • 26