Skip to content

suggestion #79

Description

@jonathan-annett

Add an option to "preserve token positioning"

basically when this mode is set, all comments are simply replaced with whitespace in such a way that surrounding code is at precisely the same file offset (and by implication the same line and column) as the original file.

Why might one need this?

I'm writing code to seach files for tokens etc and drop you into an editor at the correct location.

It's not ideal if there are comments that include the search items and this generates false hits.

If there was a way to white out everything that is not actual code, without losing the structural integrity of the file in terms of where the search terms are this would be a huge benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions