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

Key: IDEABKL-5323
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Mattias Jiderhamn
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Customizable class name suffixes for variable name suggestion

Created: 02 Nov 07 15:33   Updated: 22 Oct 08 08:42
Component/s: Editor. Code Completion
Affects Version/s: None
Fix Version/s: None

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

Build: 7,364


 Description  « Hide
When IntelliJ suggests variable names base on the variable type (Ctrl+Space), it ignores any *Impl suffix in the class name of the type. I would love if there was a setting for customizing this ignore list, so we could add our project/department specific suffixes (and prefixes?).

 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 02 Nov 07 20:54
Making this configurable will add even more clutter to our already busy code styles configuration UI, and I think that very few people would use the possibility to configure this.

Mattias Jiderhamn - 03 Nov 07 00:58
I see. For me, it would be enough with a "hidden setting", which you could change in a config (XML) file directly.
Or would it be possible to write a plugin???

To give an example: In the current project, all the entity classes has an Entity suffix, so the foo.bar.OrderEntity class should suggest "order" as variable name, rather than orderEntity.
There are a couple of pros with suffixes like this when it comes to maintenance and refactoring, but IntelliJs "faulty" suggestions is one of the cons.


NNTP User - 03 Nov 07 02:54
In general I agree with the guideline of having as few options as possible.
However I have been in exactly the same situation as Mattias - and believe me:
It's highly annoying. I can't tell how many backspace key presses this could have saved me.

At least it should be possible for a plugin to interfere with, err, I mean to say enhance the code completion in this way.


NNTP User - 22 Oct 08 08:42
In general I agree with the guideline of having as few options as possible.
However I have been in exactly the same situation as Mattias - and believe me:
It's highly annoying. I can't tell how many backspace key presses this could have saved me.

At least it should be possible for a plugin to interfere with, err, I mean to say enhance the code completion in this way.