1

I have a react project and the intellij shows the public/scripts as a different color. When I search word in project, it doesn't search from files in public/scripts.

See figure: I want to search syncHistoryWithStore, it only displays four occurrences in appSpec.js, but apparently I have this word in app.js.

enter image description here

1 Answer 1

3

Red color means that the public/scripts folder is excluded from project (navigation, search, indexing). If you select scope: Project IDE does not perform search inside it. Try selecting the scope to Directory ans select this folder directory. Then text search should work even on excluded folder.

Sign up to request clarification or add additional context in comments.

3 Comments

Find in Directory works now. Is there a way to include public/scripts to my project? Since I would like search in project.
Try un-mark it as excluded from context menu as shown here jetbrains.com/help/idea/….
I also noticed sometimes it doesnt work when $ sign is next to a word , say a PHP variable. Because it enables regex in find popup sometimes. I got it working after enabling and disabling that Regex checkbox in the same popup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.