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

Meta format off on #612

Merged
merged 7 commits into from
Feb 23, 2025
Merged

Meta format off on #612

merged 7 commits into from
Feb 23, 2025

Conversation

RhoSigma-QB64
Copy link
Member

Further improve auto formatting behavior, so we can have proper formatting switched on by default, but can suppress any auto spacing (indention+single spacing of code elements) for sections we rather want to space/align manually for better readability.

Implemented as legacy meta-commands after a REM or apostrophe:

  • '$FORMAT:OFF will suppress indention and single-spacing code elements until switched on again
  • '$FORMAT:ON to restore back to default formatting as set in the IDE Code Layout dialog or given as -f commandline switches in conjunction with the -y formatting mode

RhoSigma-QB64 and others added 4 commits February 21, 2025 18:43
- New & Open (incl. Recent open) will reset to defaults
- start of a new layout pass will reset to defaults
- included files will not affect the current formatting state in the main code
- changed test file to cover all possible cases
- added partial formatting outputs (noindent and nolayout)
@RhoSigma-QB64 RhoSigma-QB64 merged commit 1f073c3 into main Feb 23, 2025
4 checks passed
@RhoSigma-QB64 RhoSigma-QB64 deleted the meta-format-off-on branch February 23, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

4 participants