Skip to content

Add "indent error handled block" to indenter settings #4115

@Vogel612

Description

@Vogel612

We received a feature-request via mail:

Hi. I really like the Indenting function, but there's a feature I'd like.

I'd like to set my own text I want indented. For instance, I often indent the code within the "On Error" block like this:

On Error Resume Next
        ActiveSheet.ShowAllData
On Error GoTo 0

In Rubberduck I'd like to go to a field called "Indent Lines Beginning With:" and add "On Error Resume Next", then go to a field called "Outdent Lines Beginning With:" and add "On Error GoTo 0".

Thanks!

-- Shawn Wilson

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty-02-duckyResolving these involves the internal API, but with relatively easy problems to solve.enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-smart-indenterup-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