Intellij-Idea: Marking all files of unknown type as text (so that they are searchable)

Many of my scripts etc in intellij are marked with a question mark.  Then when I click on them them it prompts me:

    The file "bla" cannot be associated with a registered file type.  Please choose one:

    <insert table of file choices>

This would not matter **except** the files are not searchable (with ctrl-shift-n) until they are marked as text.  This is a major problem for me.  I have an enormous code base and I don't want to mark all of the unknown files as text.  Is there anyway that I can do that?

(Note: I have cross posted this to here: http://stackoverflow.com/questions/2649952/intellij-idea-marking-all-files-of-unknown-type-as-text-so-that-they-are-search)

2 comments

Hello Jake,

In Settings | File Types, you can specify wildcards for file names. You can
associate * with the text file type, but this will probably cause some unexpected
results when IDEA will start treating binary files as text. It's better to
associate more specific wildcards if you can.

Also note that Ctrl-Shift-N searches through all files, regardless of whether
they are associated with a file type. It's Find in Files (Ctrl-Shift-F) that
searches only through files of known filetypes.

Many of my scripts etc in intellij are marked with a question mark.
Then when I click on them them it prompts me:

The file "bla" cannot be associated with a registered file type.
Please choose one:

<insert table of file choices>

This would not matter *except* the files are not searchable (with
ctrl-shift-n) until they are marked as text.  This is a major problem
for me.  I have an enormous code base and I don't want to mark all of
the unknown files as text.  Is there anyway that I can do that?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I think in future if possible there should be an option to search all files (even files of unknown type) using ctrl-shift-f.

Thanks.

0

Please sign in to leave a comment.