Skip to content

✨ Reformatting Guide #270

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

Open
Aaron-212 opened this issue Oct 26, 2024 · 2 comments
Open

✨ Reformatting Guide #270

Aaron-212 opened this issue Oct 26, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Aaron-212
Copy link

Aaron-212 commented Oct 26, 2024

Description

A vertical guide that visually marks the preferred line length in the editor. This helps developers follow formatting conventions and maintain consistent code style across files and teams. The guide acts as a soft limit for wrapping or formatting code and is especially helpful in languages or teams that follow line length standards (e.g., 80, 100, or 120 characters).

Proposed Behavior

  • A vertical line appears at a configurable column to indicate the preferred maximum line length.
  • This guide is always visible when enabled and serves as a soft boundary for code formatting.
  • The feature is disabled by default, but can be enabled.
  • The default column position is 80, this value should be configurable.

Implementation Notes

  • Should be configurable via editor settings (e.g., toggle for visibility and numeric input for column position).
  • The line should be non-intrusive, styled to match the theme (e.g., a faint gray line).
  • Should not affect cursor behavior, selection, or editing in any way.

Benefits

  • Encourages consistent line lengths aligned with team or language-specific standards.
  • Helps reduce horizontal scrolling and improve code readability.
  • Supports a cleaner diff experience in version control systems.

Additional Context

This feature is commonly found in professional editors and IDEs, and complements tools like linters and auto-formatters that enforce line length limits.

Screenshots

image
@Aaron-212 Aaron-212 added the enhancement New feature or request label Oct 26, 2024
@austincondiff
Copy link
Collaborator

Transferring this issue to CodeEditSourceEditor.

@austincondiff austincondiff transferred this issue from CodeEditApp/CodeEdit Nov 2, 2024
@austincondiff
Copy link
Collaborator

Edited issue description for increased clarity.

@austincondiff austincondiff changed the title ✨ Reformat Guide / Wrap Guide ✨ Reformatting Guide Apr 19, 2025
@austincondiff austincondiff moved this from 🆕 New to 📋 Todo in CodeEdit Project Apr 19, 2025
@austincondiff austincondiff added the good first issue Good for newcomers label Apr 19, 2025
@austincondiff austincondiff self-assigned this Apr 25, 2025
@austincondiff austincondiff moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Project Apr 25, 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 good first issue Good for newcomers
Projects
Status: 🏃‍♂️ In Progress
Development

No branches or pull requests

2 participants