Refactor rename with AI Assistant

Use the power of AI Assistant for even better naming suggestions.

Naming things is hard! Use AI Assistant for even better naming suggestions. Open Refactor | Rename ⇧F6 (macOS) / Shift+F6 (Windows/Linux) to rename a variable or method. If you are logged into AI Assistant, you'll see its naming suggestions at the bottom of the list. Select the suggestion you want, using the arrow keys and press (macOS) / Enter (Windows/Linux) to select it. If none of the suggestions are quite what you want, you can also type the name you want yourself.


Related Resources

Edit commit message
Edit commit message
Edit an existing commit message; use AI Assistant to Improve Commit Message.
Extract Method
Extract Method
Extract code to a new method.
AI Assistant Chat
AI Assistant Chat
You can chat with JetBrains AI Assistant right inside the IDE.