Rename Declaration Quick Fix

Prompts for a new name, renames a declaration accordingly, and updates all usages.

Applicability

This quick-fix can be applied as a single operation at the following scopes:

Examples

 This example depicts the state of module(s) before and after applying the quick-fix.

Before
Module1 (Any)
Option Explicit Public Sub DoSomething() A1 End Sub Public Sub A1(ByVal value As Long) Debug.Print value End Sub
After
Module1 (Any)
Option Explicit Public Sub DoSomething() Renamed End Sub Public Sub Renamed(ByVal value As Long) Debug.Print value End Sub

Rubberduck.CodeAnalysis.QuickFixes.Concrete.Refactoring.RenameDeclarationQuickFix.cs (Prerelease-v2.5.2.6174)