GNOME Bugzilla – Bug 732268
Snippets doesn't respect unchecked "Use Spaces" nor tab width settings for PHP
Last modified: 2020-11-24 09:58:42 UTC
Overview: Some PHP programmers prefer to use tabs for indentation, Gedit has an option to use tabs or spaces for indentation, however for PHP, Snippets only uses spaces. When "Use Spaces" is checked, the different tab widths (2, 4, 8) are ignored and 4 space indentation is always used. If this change was made to help ensure PHP code is PSR-0/4 compatible it should be reverted, as forcing a specific "coding standard" on users of a dynamically typed language is ridiculous and wrong. Steps to Reproduce: 1. Click "Tab Width: 8" 2. Make sure "Use Spaces" is unchecked. 3. Use Snippets to insert code (for example typing "function" and pressing enter) Actual Results: Inserted code uses (4) spaces for indentation, not tabs. While the rest of the code typed manually will likely use tabs. Expected Results: The inserted code should use tabs. Or use 2, 4, or 8 spaces if "Use Spaces" is checked.
Correction: typing "function" and pressing *tab*
Mass-closing of all gedit bugzilla tickets. Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.