http://www.intellij.net/tracker/idea/viewSCR?publicId=32197
Here goes another far-shot feature request: it would be nice if there was a way for IDEA to automatically create a new code style setting (or use an existing one, if there is a match) that is derived from the current editing file. Let's go for the abstract:
I usually format my code with braces on the next line, using 4 characters as ident. That's also my company suggested style policy, but this is not strongly enforced. The world would be a better place if all the code was mine, but unfortunately it isn't. When I'm working on someone else code, I should NOT reformat the code: if the file is currently formatted with braces on the same line and tabs for ident, than that's what I should keep using if I need to modify that file.
What I have done was create a few code style settings, which I conveniently switch according to which file I'm working in. That's all good and dandy, but creating these 5 or 6 style settings took me some time: I think IDEA could do that for me. At least brace positioning and ident should be pretty easy to guess.
Now the request, in one sentence: a way to create a new style setting based on the current file. I want to select an action in a menu and say, THERE BE STYLE SETTING.
Now, a subrequest: if the above is ever implemented, one more feature could creep in: the ability to tell IDEA to always adapt to the style of the current file.