Eclipse –プロジェクトエクスプローラーに赤いXアイコンが表示されませんでした
Eclipse IDEでは、プロジェクトにエラーが含まれている場合、エラーの原因となっているファイルに小さな「赤x」アイコンが表示されます。 この便利な機能は、「Package Explorer」などのJava関連のパースペクティブでのみサポートされています。
1. 問題
個人的には、「Project Explorer」パースペクティブ(純粋なフォルダー構造)を使用することを好みますが、このパースペクティブでは「red-x」アイコン機能はサポートされていません。
図:「red-x」アイコンはどこにありますか?
2. 溶液
これを修正するには、Eclipse CDT (C/C++ Development Tooling)プラグインをインストールし、カスタマイズされたビューで有効にします。
2.1 In Eclipse menu, select “Help → Eclipse Marketplace”, search “Eclipse CDT” and install it.
2.2 Restart Eclipse, in “Project Explorer” view, click on the tiny “triangle icon” and select “Customize View…”
2.3 Clicks on the “Content Tab”, scroll down, make sure the “C/C++ elements” or “CDT elements” is checked.
2.4 Done, now the “red-x” icon is supported in “Project Explorer” view.
図:「red-x」アイコンが戻ってきました!