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

Add formatter directive to disable formatting for a section #587

Open
mark-wiemer opened this issue Jan 4, 2025 · 0 comments
Open

Add formatter directive to disable formatting for a section #587

mark-wiemer opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels
enhancement new feature or request formatter code formatter issues

Comments

@mark-wiemer
Copy link
Owner

Is your feature request related to a problem? Please describe.
Sometimes the formatter has bugs or does things I just don't like.

Describe the solution you'd like
I'd like to be able to toggle the formatter for specific blocks of code to not edit it. Any code between the ;@AHK++FormatOff and ;@AHK++FormatOn directives should be unchanged. This should work for entire files as well for simplicity.

Describe alternatives you've considered
Right now I have to just disable file formatting entirely with Ctrl+K, Ctrl+Shift+S "Save Without Formatting"

Additional context
Originally mentioned in #585

@mark-wiemer mark-wiemer added the enhancement new feature or request label Jan 4, 2025
@mark-wiemer mark-wiemer self-assigned this Jan 4, 2025
@mark-wiemer mark-wiemer added the formatter code formatter issues label Jan 4, 2025
@mark-wiemer mark-wiemer moved this to Todo in (old) AHK++ Jan 4, 2025
@mark-wiemer mark-wiemer moved this to To do in AHK++ Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature or request formatter code formatter issues
Projects
Status: To do
Development

No branches or pull requests

1 participant