Skip to content

Add auto-incrementing counter placeholder to Find/Replace #3842

@shardt68

Description

@shardt68

Currently, Eclipse Find/Replace has no built-in way to insert sequential numbers when replacing multiple matches. Users working with numbered lists, SQL inserts, or configuration files need this capability and currently resort to external tools.

Proposal: Add a #{start,step,pad} placeholder syntax to the replace string that expands to an auto-incrementing counter during Replace All and Replace/Find operations.

Examples:

#{1,1,3} → 001, 002, 003, …
#{10,5,0} → 10, 15, 20, …
$1_#{1,1,2} (with regex) → Match1_01, Match1_02, …

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions