Skip to content

✨ Reformatting Guide #270

Closed
Closed

Description

@Aaron-212

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

Activity

  1. austincondiff commented on Nov 2, 2024

    @austincondiff
    Collaborator

    Transferring this issue to CodeEditSourceEditor.

  2. austincondiff commented on Apr 19, 2025

    @austincondiff
    Collaborator

    Edited issue description for increased clarity.

  3. changed the title [-]✨ Reformat Guide / Wrap Guide[/-] [+]✨ Reformatting Guide[/+] on Apr 19, 2025
  4. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton Apr 19, 2025
  5. moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Projecton Apr 25, 2025
  6. added a commit that references this issue on Apr 28, 2025
  7. moved this from 🏃‍♂️ In Progress to 🏁 Complete in CodeEdit Projecton Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions