0
0

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.

Tailwind CSS IntelliSense が動かない

Last updated at Posted at 2022-03-25

Visual Studio Code の拡張機能の Tailwind CSS IntelliSense が特定の HTML ファイルで動作しなかったときの解決メモです。

環境

  • Visual Studio Code | バージョン: 1.65.2
  • Tailwind CSS IntelliSense | バージョン: v0.7.7

ディレクトリ構成

.
├── dist
│   └── output.css
├── src
│   ├── a.html
│   ├── b.html
│   └── input.css
└── tailwind.config.js

症状

上記ディレクトリ構成で、 a.html では Tailwind CSS IntelliSense の suggestions が表示されるのですが、b.html では表示されない。(a.html と b.html は同じ内容)

解決のため、試したこと

  • b.html のファイル名を変える 🙅
  • a.html を b.html にリネーム 🙅
  • Tailwind CSS IntelliSense の再インストール 🙅
  • Visual Studio Code の再起動 🙅
  • Mac の再起動 🙅

解決方法

ルートディレクトリをリネームしたら解決しました 🙆

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?