Project Code Style without storing in .ipr

Is there a way to have a project-specific code style without storing it in
the .ipr file?

13 comments
Comment actions Permalink

Hello Tom,

Is there a way to have a project-specific code style without storing
it in the .ipr file?


Yes. You can use directory-based format - then you won't have an .ipr file
at all and your code style will be stored in a separate .xml file under the
.idea directory.

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




0
Comment actions Permalink

Yes. You can use directory-based format - then you won't have an .ipr
file at all and your code style will be stored in a separate .xml file
under the .idea directory.


How to activate the directory-based format?

0
Comment actions Permalink

Hello Tom,

>> Yes. You can use directory-based format - then you won't have an .ipr
>> file at all and your code style will be stored in a separate .xml
>> file under the .idea directory.
>>

How to activate the directory-based format?


File | Open in New (Directory-based) Format

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


0
Comment actions Permalink

BTW: I find the name of that menu item very misleading and un-intuitive.
I invoke "Open in New Format", but must select an old-format *.ipr file?!
IMHO it should better be something like "Convert Project to New Format"

Also when opening a project in new format I tried selecting the .idea folder
to open the project. It took me a while to figure out that I have to select the
parent folder. (And I have seen that issue with my colleagues, too.)

Dmitry Jemerov wrote:

Hello Tom,

>>> Yes. You can use directory-based format - then you won't have an .ipr
>>> file at all and your code style will be stored in a separate .xml
>>> file under the .idea directory.
>>>
>> How to activate the directory-based format?


File | Open in New (Directory-based) Format

0
Comment actions Permalink

Hello Stephen,

BTW: I find the name of that menu item very misleading and
un-intuitive.


Related issue: http://www.jetbrains.net/jira/browse/IDEADEV-34772

Not the same requirement, but the same problem.

Alexander.


0
Comment actions Permalink

Is the new .idea format recognized by TeamCity 4.5 ?

Gilles

0
Comment actions Permalink

Hello Gilles,

Is the new .idea format recognized by TeamCity 4.5 ?


Yes.

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


0
Comment actions Permalink

Thanks,

I used to put my .ipr under version control, non-shared launch configurations were located in .iws.
In the new layout, where are located the non-shared launch configurations ?

Gilles

0
Comment actions Permalink

But please be aware of (and vote for) this issue:

http://www.jetbrains.net/jira/browse/IDEA-21915

On 6/15/2009 1:41 PM, Gilles Philippart wrote:

Thanks,

>

I used to put my .ipr under version control, non-shared launch configurations were located in .iws.
In the new layout, where are located the non-shared launch configurations ?

>

Gilles

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5240052#5240052


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink

Hello Gilles,

I used to put my .ipr under version control, non-shared launch
configurations were located in .iws. In the new layout, where are
located the non-shared launch configurations ?


In workspace.xml under the .idea directory, along with all other non-shared
settings.

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


0
Comment actions Permalink

Hello Stephen,

BTW: I find the name of that menu item very misleading and un-intuitive.
I invoke "Open in New Format", but must select an old-format *.ipr
file?!
IMHO it should better be something like "Convert Project to New Format"


Agreed. I've renamed the action.

Also when opening a project in new format I tried selecting the .idea folder
to open the project. It took me a while to figure out that I have to select

the

parent folder. (And I have seen that issue with my colleagues, too.)


We're trying to give you a hint by highlighting the parent folder (rather
than the .idea subfolder) with a special icon.

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


0
Comment actions Permalink

There is a serious bug for IDEA 8.1.3: if you store the .idea/libraries
directory including files under SVN, the update command always will fail,
because IDEA wipes this directory (don't know about the other directories
below .idea/) including the .svn directory.

http://www.jetbrains.net/jira/browse/IDEA-23478

Tom

0

Please sign in to leave a comment.