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.

Bug 117827 - [60cat] [60cat] editor tabstops
Summary: [60cat] [60cat] editor tabstops
Status: RESOLVED DUPLICATE of bug 115997
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 18:39 UTC by Unknown
Modified: 2007-11-05 13:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Editor setting attachment (28.56 KB, application/octet-stream)
2007-10-08 14:11 UTC, Unknown
Details
Editor setting attachment (28.69 KB, application/octet-stream)
2007-10-08 14:11 UTC, Unknown
Details
Editor setting attachment (28.47 KB, application/octet-stream)
2007-10-08 14:11 UTC, Unknown
Details
Editor setting attachment (26.19 KB, application/octet-stream)
2007-10-08 14:12 UTC, Unknown
Details
Editor setting attachment (14.59 KB, application/octet-stream)
2007-10-08 14:13 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2007-10-04 18:39:02 UTC
[ BUILD # : Beta1 ]
[ JDK VERSION : 1.6.0_02 ]

I don't know if it has been mentioned before, but it seems the editor
tabs are based on tab stops rather than tabs.  That is, since my
indentation and tab is 3 (instead of 4) when I his the tab key (after
a '{') it only moves 1 place instead of the expected 3.
-Bryan
Comment 1 Jiri Prox 2007-10-05 10:26:21 UTC
What is your indentation indentation setting? Please provide also part of code where you see the bad behaviour.

Just note that pressing tab does not insert tab character but moves cursor to next indentation level.
Comment 2 Vitezslav Stejskal 2007-10-05 11:43:42 UTC
Well, yes you are right the editor is using tabstops. Why is it a problem? Please reopen if you think there is a problem
and/or you have a usecase that is currently not supported. Thanks
Comment 3 Unknown 2007-10-05 15:47:46 UTC
My problem is that I have my settings set to 3 (instead of 4). So someone isn't honoring that setting correctly and the
start of the next line is in the wrong place.  The only way to fix it is to manually put in the spaces or call reformat
(which does honor it).  The editor currently doesn't format the way the options have it set.
Comment 4 Vitezslav Stejskal 2007-10-08 10:32:49 UTC
Ok, I probably should have held back and let you answer Jirka's questions first. Could you please describe all your
indentation related settings - mainly 'Expand Tabs to Spaces', Number of Spaces per Indent', 'Tab Size'. And if we are
talking .java files here also 'Continuation Indentation Size'. Thanks a lot.
Comment 5 Unknown 2007-10-08 14:10:15 UTC
This is the java editor
Here are the screen shots for the settings.
(Subsequent images)
Comment 6 Unknown 2007-10-08 14:11:15 UTC
Created attachment 50381 [details]
Editor setting attachment
Comment 7 Unknown 2007-10-08 14:11:33 UTC
Created attachment 50382 [details]
Editor setting attachment
Comment 8 Unknown 2007-10-08 14:11:51 UTC
Created attachment 50383 [details]
Editor setting attachment
Comment 9 Unknown 2007-10-08 14:12:48 UTC
Created attachment 50385 [details]
Editor setting attachment
Comment 10 Unknown 2007-10-08 14:13:09 UTC
Created attachment 50386 [details]
Editor setting attachment
Comment 11 Vitezslav Stejskal 2007-10-09 10:09:17 UTC
Thanks for the screenshots. When installing beta1 and running it for the first time did you import settings from the
previous version? There was issue #115997, causing indentation not to work properly after importing settings from older
versions. It should already be fixed. SO, if you imported settings than this is a duplicate of #115997 and I would
suggest either using the latest dev build or wait for beta2. Thanks
Comment 12 Unknown 2007-10-09 16:10:17 UTC
I imported my settings
Comment 13 Vitezslav Stejskal 2007-10-10 10:12:14 UTC
Thanks for the help. It should already be fixed, please try newer build or wait for beta2.

*** This issue has been marked as a duplicate of 115997 ***
Comment 14 Vitezslav Stejskal 2007-10-10 10:14:41 UTC
Actually you could workaround the issue in your build by changing the indentation to eg 5 and then back to 3. See the
comments in issue #115997.