Idea logo

The IntelliJ IDEA Blog

The Capable & Ergonomic Java IDE by JetBrains


Native File Associations in Maia

In Maia, it’s finally possible to open a file in associated application (for example, .doc or .pdf) by double-clicking it in Project View or by pressing F4. This works for file types, registered under Files opened in associated applications.

The dialog displayed after you double-click a file of an unknown type also gives you options to associate its type with an application:

Also, Project View and Open File dialogs now display file type icons as they are registered in your OS, instead of generic unknown file icon.

Comments below can no longer be edited.

9 Responses to Native File Associations in Maia

  1. Avatar

    Tero says:

    July 28, 2009

    Hopefully this file association feature will be supported on OS X too.

  2. Avatar

    Stephen Friedrich says:

    July 28, 2009

    Great that this is finally addressed!

    However I think this implementation is flawed: There will always be file types, that I would like to sometimes open in IDEA and sometimes in the native app (png, txt, whatever).

    How can I decide whether I want to open the file in IDEA or in the native app?

    Also: Is there more integration on the way? Navigate to a file/folder in the native explorer? Open with any native application?

  3. Avatar

    yole says:

    July 28, 2009

    Tero: The feature works under Windows, MacOS X, Gnome and KDE.

    Stephen: We’ll likely add a separate action to open any file in the associated app. Navigating to file/folder in the native explorer is already supported via Ctrl-clicking on editor tab, and we also plan to add a Select In target.

    I don’t think we’ll add a feature to open a file with any native application. You can already do a large part of it using external tools. Adding a UI for showing the list of all apps with which a file can be opened is too platform-specific and quite complicated.

  4. Avatar

    Charlie Hayes says:

    July 28, 2009

    This looks a lot like manually assigning the application to the file type and nothing like using the actual system file type association. Am I wrong?

  5. Avatar

    yole says:

    July 29, 2009


    Please take a better look. The standard IntelliJ IDEA file type assignment is of course still there, but if you choose to use the associated application, you don’t need to assign the app manually.

  6. Avatar

    Charlie Hayes says:

    July 29, 2009

    Aha! You’re right!

  7. Avatar

    ij90user says:

    September 15, 2010

    I have a make file, bymistake I selected some option, now IJ thinks it is a binary an I can’t option it, is there a way to change the file association to text ?

    I looked at settings–> File Types, but as this is make file , it does not have any extension, so I don’t find it in any “Recognized file Types” !!

    any help to change this association ?

    and btw, how do you add file association where there is no extension like mine ?

  8. Avatar

    David says:

    November 25, 2010

    I got the same problem as ij90user.

  9. Avatar

    David says:

    November 25, 2010

    I found the solution.
    Go to File->Settings–>File Types, choose the file type that you selected by mistake. In my case, it was “Text files”. In the Registered Patterns, delete the your file name,which was registered when you chose it by mistake.

    Everything is fine now.

Discover more