
GitHub Enhances Code Viewing with Consistent Tab-Width Settings
In a move aimed at improving the developer experience across its platform, GitHub has rolled out a significant update to ensure consistent tab-width settings for code viewing. This enhancement is designed to address long-standing concerns about inconsistent tab rendering and improve overall code readability.
Historically, GitHub users had been able to set their preferred tab width for viewing code; however, these settings were not reliably maintained throughout the site. This inconsistency often resulted in code appearing differently from what users expected, complicating the reading and reviewing process. Moreover, project-defined tab widths were not always applied, further affecting the overall developer experience.
With this latest update, GitHub has implemented a global CSS update that ensures the consistent application of user-defined tab-width preferences across its entire platform. This change will apply to all code displayed in preformatted text, code blocks, or other Markdown-rendered contexts, aligning with users’ settings from their account preferences.
It’s essential to note that this improvement only affects code that utilizes tab characters; any code indented with spaces will remain unchanged.
Source: Blockchain.News