Skip to content

Refactoring Tool "Move Closer to Usage" should honor indenter settings #4375

@ChrisBrackett

Description

@ChrisBrackett

The refactoring tool "Move Closer to Usage" doesn't honor indenter settings. For example, when using the tool on variable varToMove:

Sub test()
    Dim varToMove                       As String ' indented
    Dim j                               As Long
    Debug.Print varToMove
End Sub

It ends up like this:

Sub test()
    Dim j                               As Long
    Dim varToMove As String ' not indented
    Debug.Print varToMove
End Sub

It would make sense to either have this tool honor the indenter settings or just keep the same indentation on the declaration line the same as before it was moved.

Version 2.2.0.3762
OS: Microsoft Windows NT 6.1.7601 Service Pack 1, x64
Host Product: Microsoft Outlook x86
Host Version: 16.0.4717.1000
Host Executable: OUTLOOK.EXE

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty-01-ducklingIssue where no particularly involved knowledge of the internal API is needed.enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-refactoringsgood first issueWant to contribute? That's a good place to start!hacktoberfestTags issues for Hacktoberfest 2019up-for-grabsUse this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions