Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion #79

Open
jonathan-annett opened this issue Jan 1, 2023 · 0 comments
Open

suggestion #79

jonathan-annett opened this issue Jan 1, 2023 · 0 comments

Comments

@jonathan-annett
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant