Xcode text editor won't indent past 3 tabs
| Originator: | dustin.norman | ||
| Number: | rdar://12208509 | Date Originated: | 30-Aug-2012 02:53 PM |
| Status: | Duplicate/11527009 | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.4.1 |
| Classification: | UI/Usability | Reproducible: | Yes |
Summary: All of sudden, Xcode has stopped rendering more than 3 tabs in a row in the text editor. If you have the file, it actually saves all of the tab presses you made but it won't display them. If you open a file containing lines with more than 3 tabs at the beginning, they will all be rendered as if there were 3 tabs. Steps to Reproduce: Repro 1: 1) Open a new source file (C is fine) 2) Press the tab key more than 3 times in a row on a single line 3) Notice that the cursor stops moving after the 3rd tab press Repro 2: 1) Open a file containing containing lines starting with more than 3 tabs 2) Notice that the line is rendered as if there were only 3 tabs Expected Results: All of the tabs in the file would be rendered Actual Results: Only the first 3 tabs are rendered Regression: I never saw this in any previous version of Xcode Notes: * I tried disabling automatically trim trailing whitespace and it didn't make a difference * Attached are 2 screenshots of a file with a lot of indenting. One screenshot shows how Xcode is rendering the file, the other shows how TextEdit renders the file. I also included the source file that I used when taking those screenshots. 04-Sep-2012 09:54 AM Dustin Norman: I've been able to track this down to using the Inconsolata-dz font (http://nodnod.net/2009/feb/12/adding-straight-single-and-double-quotes-inconsola/). If I modify a theme to use Inconsolata-dz and then restart Xcode, I start seeing this tab issue. If I use Menlo or another font, Xcode renders tab correctly.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!