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

Key: IDEADEV-13241
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: David Beutel
Votes: 2
Watchers: 1
Operations

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

import layout option to separate static from regular imports (or to make minimal changes)

Created: 12 Oct 06 22:33   Updated: 16 Dec 07 20:01
Component/s: Code Formatting and Code Style
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,267
Severity: Medium


 Description  « Hide
In Global Code Style -> Imports -> Import Layout, I can specify the order of packages. Those imports includes static imports. I'd like an option for IDEA to separate all the static imports, putting them first.

In general, I'd like options to format all the imports in any way that Eclipse can do it, because most developers on my current project are using Eclipse, and I'm trying to keep using IDEA and avoid unnecessary conflicts in CVS. Of course, I'm using Editor -> Behavior -> Imports -> Optimize imports on the fly to automatically add or delete imports as necessary. However, whenever IDEA does that, it also reformats all the existing imports.

Another approach to this issue would be to have an option to add or delete imports as necessary without changing the format of any existing imports. I'm assuming that the "Add unambiguous imports on the fly" option might do that for adding but not for deleting. Actually I never look at the imports and don't really care how they're formatted; I just want them to be correct and to not generate extra CVS conflicts.



 All   Comments   Work Log   Change History      Sort Order:
Paulo Avelar - 14 Dec 07 04:31
I'm having the same issue. I'm getting subversion conflicts with all the eclipse people in my project. Unfortunately they are majority and are trying to force me to switch IDEs because I'm messing up the imports... (Can't control the order of static imports...)