Variable rename dialog box vs. inline editing

When you use shift-f6 to rename a variable sometimes the editing is done inline (i.e. as you type it changes it everywhere in the file it is used). However, sometimes a dialog box comes up you must hit OK on. I have never been able to figure out out causes the dialog box to pop up versus just the inline editing occur.

Does anyone know? I much prefer the inline editing as it saves me from having to go to the mouse (or use alt-r to click the refactor button)

0
Avatar
Permanently deleted user

I believe you go through the dialog when it detects the target name used in ways other than just references to the local variable or parameter (e.g., in comments).

Randall Schulz

0
Avatar
Permanently deleted user

I just did some testing with your theory and that seems to be the answer. Thanks!

0

请先登录再写评论。