This Question is Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: Apr 16, 2010 5:14 PM by Jake Summers  
Jake Summers Newbie 2 posts since
Apr 16, 2010
Currently Being Moderated

Apr 16, 2010 5:08 AM

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)

Dmitry Jemerov Master 12,570 posts since
Aug 19, 2002

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!"

 

 

 

More Like This

  • Retrieving data ...