This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Indentation: expand tabs to spaces | ||
---|---|---|---|
Product: | editor | Reporter: | Darknight7 <darknight7> |
Component: | Formatting & Indentation | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Darknight7
2004-12-03 16:06:55 UTC
IMHO the option should be ranamed. It should say "New Tabs" rather than "Tabs". Your idea that the whole file should be reformatted is a very bad one. I don't want anyone to try to change just one line and end up f***ing up the whole repository file just because they had their indentation settings wrong. As far as I know the whole file IS already reformatted with current behaviuor. The fact that you already have most tabs converted to spaces is why you may have missed this. I am making a proposal exactly for this reason, those who use tabs should be able to use them well, just as those who use spaces. I guess netbeans devs enjoy spaces, well, I don't. :) When this option is *unchecked*, pressing tab still inserts spaces instead of a hard tab. It seems that you can't type a tab and get a tab regardless of the setting. Please note that tab only jumps to the next indentation level. If you have default settings - tabsize=8 and indentation level=4, you must press tab twice to insert single tab char. Thanks to jiriprox, now it is fine with me. I used to have "Number of spaces to intend" = 4 and "Tab size" was 8. The "Expand Tab to spaces" was unchecked, but anyway when I pressed Tab, I get 4 spaces. But reducing "Tab size" to 4 solved the problem. Now I have "hard" tab as expected. This made worse by the fact that there is no option to show invisible characters, so if you have some code that has been badly formatted with a mix of spaces and tabs, there's no way you can tell by looking at it. BBEdit has a nice solution to this - it shows spaces as a midline dot (UTF-8 C2B7), tabs as a small triangle and line breaks as a not sign (C2AC). These are displayed in a light grey, so they really don't interfere with coding. IMHO, using spaces for indents borders on criminal anyway! This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |