codestyles feature request

If you lose your codestyle, it can be a major hassle to restore it.

If it fairly easy to find it and back it up, but it is maddeningly to
try to fool Intellij into letting you restore it. IntelliJ's behaviour
might have been specified by the guy who designs advanced crossword
puzzles.  It is in a word inscrutable.

Just have an import/export on the codestyles dialog to let you export
a codestyle to an external directory, or import to copy one into the
codestyles directory and add it to the list of codestyles.

What it is doing CAN'T be right.  When you save usually nothing
happens.  Deleted codestyles come back to life. 
--
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is,
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)

4 comments
Comment actions Permalink

I'm not sure what you are talking about.
The code style profiles are saved in one XML file per profile.
Those you can easily save away to backup and also copy back to restore.
You just have to restart IntelliJ to make it recognize the new file.
Where do you see a wrong behaviour here? o_O
And the only case where I see a "deleted profile come back" is if I dismiss the settings dialog instead of confirming it with is exactly what I'd expect.

0
Comment actions Permalink

When you export your settings via "File" -> "Export Settings ..." you can (by default) export your codestyles too. I think this is very easy and intuitive.

0
Comment actions Permalink

On Fri, 02 Sep 2011 03:22:24 MSD, Björn Kautler
<no_reply@jetbrains.com> wrote, quoted or indirectly quoted someone
who said :

>I'm not sure what you are talking about.
>The code style profiles are saved in one XML file per profile.
>Those you can easily save away to backup and also copy back to restore.

In theory. But in practice you will discover they are NOT saved unless
you make a change to the codestyle before and after the save.

Further if you have a saved codestyle, and for some reason Idea loses
all its codestyles, e.g. you have reinstalled Idea from scratch, or
deleted a previous version, simply putting the codestyle file into the
codestyles directory has no effect. You have to go through a
complicated song and dance to fool it into accepting the "foreign"
codestyle. I document the procedure at
http://mindprod.com/jgloss/intellij.html

I am asking for a simple import/export that does not require all this
subterfuge.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is,
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)

0
Comment actions Permalink

On Fri, 02 Sep 2011 17:23:02 MSD, Helge Walter
<no_reply@jetbrains.com> wrote, quoted or indirectly quoted someone
who said :

>When you export your settings via "File" -> "Export Settings ..." you can (by default) export your codestyles too. I think this is very easy and intuitive.

However it likely something will go wrong if you try to import
something as complicated as all your settings into a future version.
You want to be able to restore just a single codestyle, which has a
much better chance of success.

--
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is,
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)

0

Please sign in to leave a comment.