Search code examples
intellij-ideapycharmphpstormwebstormjetbrains-ide

Reading Project Metadata from JetBrains IntelliJ ".idea" Directory


I am looking for information/documentation about reading project information from the .idea directory within projects created with various JetBrains programmes.

In NetBeans it's fairly straightforward: you open nbproject/project.xml and can get the name of the project, as well as the project type (e.g. org.netbeans.modules.php.project).

With .idea, I am having a harder time finding the definitive locations of the data.

Specifically, I am looking for:

  1. Name of the project (if different from root directory name)
  2. Exact software the project was created with (WebStorm vs. PhpStorm vs. PyCharm vs. RubyMine vs. [...])

Solution

  • Name of the project (if different from root directory name)

    Look in .idea/.name file (if exists) -- it's a plain text file with single line of text.

    Exact software the project was created with (WebStorm vs. PhpStorm vs. PyCharm vs. RubyMine vs. [...])

    There is no such info inside AFAIK -- all products use the same folder/format (well, IntelliJ can also use .ipr files IIRC -- legacy format).

    Different IDEs may use different types of modules: e.g. PhpStorm/WebStorm only uses WEB_MODULE -- look in .iml file.