Closed shammellee closed 7 years ago
set quote_char
to '
.
Could you be a little more clear? How do I set quote_char
to '
exactly?
if you want to set it for html, please try to set like below.
let g:user_emmet_settings = {
\ 'html' : {
\ 'quote_char': "'",
\ },
\}
Cool, and how do I enable single quotes for .js and .jsx files?
Never mind, I figured it out. For anyone else wondering…
let g:user_emmet_settings = {
\ "html": {
\ "quote_char": "'"
\ }
\ ,"javascript.jsx": {
\ "extends": "jsx"
\ "quote_char": "'"
\ }
\}
Still have issue?
Never mind, I figured it out. For anyone else wondering…
let g:user_emmet_settings = { \ "html": { \ "quote_char": "'" \ } \ ,"javascript.jsx": { \ "extends": "jsx" \ "quote_char": "'" \ } \}
Just to clarify, I think there should be a comma after "extends": "jsx"
-- otherwise this solved the issue for me!
If I specify single quotes for attributes, the expansion should be single quotes. Instead, the expansion is double quotes…
p[foo='bar']
<p foo='bar'></p>
<p foo="bar"></p>