Lost my code style settings

Answered

I was just wondering why my indents were all over the place when I opened my project today, turns out it was mixed with spaces and tabs and IntelliJ suddenly decided to show tabs with a width of 2.

All I did was update to the latest EAP.

So, I've never used a tab width of 2, nor did I set my indent width to 2 or anything of the sort.

 

 

This is what it looks like in IntelliJ.

 

Could this have been caused by the sync repository? Is there a way to get back an earlier version of my settings from the settings sync thing?

0
8 comments

Most likely the settings were synched with Settings repository indeed.

>Is there a way to get back an earlier version of my settings from the settings sync thing?

Try to disable account sync (e.g. by disabling IDE Settings Sync plugin). The settings are stored in a different directory when account sync is enabled (under jba_config subdirectory).

0
Avatar
Permanently deleted user

Thanks for the quick reply Andrey.

As for disabling it, that didn't help. I assume my code styles would be saved under SYS_AND_CON_DIR/config/codestyles rather than SYS_AND_CON_DIR/config/jba_config/codeStyles ?

I've had settings sync enabled for a long time now, so the settings I do want were present on all my machines until yesterday through sync. Today, I luckily started IntelliJ on all my machines already and jba_config has been overwritten on both machines.

I see that my settings are on version 284 according to the "version" file. Is it possible to download an earlier archive somehow?

0

>As for disabling it, that didn't help. I assume my code styles would be saved under SYS_AND_CON_DIR/config/codestyles rather than SYS_AND_CON_DIR/config/jba_config/codeStyles ?

Yes.

>I see that my settings are on version 284 according to the "version" file. Is it possible to download an earlier archive somehow?

There is no such possibility to return the old settings.

0
Avatar
Permanently deleted user

Great. Maybe you could at least keep an archive of old settings? You know, yesterday, the day before yesterday, last week.... if your sync code ever fucks up, which it probably did in my case (I diffed it against a week old copy that I found in a profile I luckily hadn't started in a week), many people will be sad. I did report at least one sync crash in the last couple of days, so it surely isn't bug free.

 

As for the first point: No such luck then, they're all files IntelliJ ships with containing only a single line "use version 173" or something of that manner.

0
Avatar
Permanently deleted user

Only found the files I already have on my computer, too bad :(

 

0
Avatar
Permanently deleted user

Maybe add a warning to this "repository" that there's history, no way to get back settings once they're overwritten, whether it is through user error or programming error.

0
Avatar
Permanently deleted user

Why not add them to the local history at the very least?

0

Local history designed only for project files, not IDE global settings. There are related request: 

https://youtrack.jetbrains.com/issue/IDEA-184686

https://youtrack.jetbrains.com/issue/IDEA-171937

Feel free to file a request about settings sync. E.g. probably it may be considered as an action that creates a backup of global settings.

0

Please sign in to leave a comment.