Variable names in Automatically Generated code

When IntelliJ creates/inserts mouse methods, it names the MouseEvent as 'e'

For example,

public void mouseMoved(MouseEvent e)

Is there some way to change this?

For example to 'mouseEvent'

Thanks,

Ted

1 comment
Comment actions Permalink

If you're talking about overriding/implementing MouseListener methods, IDEA
is probably taking the parameter name from the parent class. (That is, they're
probably defined as "MouseEvent e" in MouseListener.) I don't think there's
a way to change it.

When IntelliJ creates/inserts mouse methods, it names the MouseEvent
as 'e'

For example,

public void mouseMoved(MouseEvent e)

Is there some way to change this?

For example to 'mouseEvent'

Thanks,

Ted




0

Please sign in to leave a comment.