Why does ReSharper's "Rename" only sometimes display a prompt?

When I rename a variable using ReSharper 4.5 (VS2008), the rename is performed inline (I specify the new variable name in the editor itself) or via a prompt (a popup window where I specify the new variable name).

I'm hoping someone can tell me what determines which approach is used?

Answers


I believe it lets you edit it inline depending on the variables scope. If it is local, it only needs to refactor the current methods reference to the variable.

Otherwise it needs to refactor all references to the variable or a method that occur in other files. The prompt lets you specify if you want to look in comments and if you want to open all the affected files, since the change may affect multiple files.


Need Your Help

How to fix paint artifacts when replacing items in Tree View?

winapi treeview comctl32

I have a Tree View positioned in the content area of a Tab Control (the Tree View is a sibling of the Tab Control). When I remove tree view items, add new tree view items, and select one of them, the

Cross Directional UIScrollViews - Can I Modify the Scrolling Behaviour?

ios objective-c uitableview uiscrollview

Here's how the scroll views work: One scroll view is paging enabled in the horizontal direction. Each 'page' of this scroll view contains a vertically scrolling UITableView. Without modification, t...