History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-1700
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Duplicate
Assignee: Unassigned
Reporter: Maxim Shafirov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Automatically derive a code style setting from the current file

Created: 07 Feb 05 19:54   Updated: 07 Aug 07 14:27
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
This issue duplicates:
IDEABKL-1999 Code style settings by example. Major Open
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.