0

Is there a way, to create a attribute/method parameter/local variable by type, with same name as type starting with lowercase letter?

Example:

  1. Redi [ctrl+space], and "RedirectAttributes" type is proposed

  2. [magic shortcut]

  3. IDE inserts: RedirectAttributes redirectAttributes

If not, where should I start to implement such code completion plugin?

Piotr Müller
  • 5,323
  • 5
  • 55
  • 82

1 Answers1

0

Press Ctrl+space after the type is added.

PrintWriter -> Ctrl+space proposes printWriter

If a different shortcut is needed, then you would have to implement it. This link explains how to provide a custom keyboard shortcut.

M A
  • 71,713
  • 13
  • 134
  • 174