8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Styled-componentsでEmmetが効かない

Posted at

めちゃくちゃ単純なことにハマったのでメモ。

症状

const Name = styled.div `
  display: block;
`

を書きたいとして、Emmetの補完が効かない。具体的には、

const Name = styled.div `
  db
`

Tabを押すと

const Name = styled.div `
  <db>
`

になってしまう。

解決策

settings.jsonに

"emmet.includeLanguages": {
  "typescriptreact": "css",
  "javascriptreact": "css"
}

を追記すれば解決。

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?