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.
[ 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
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.
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
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.
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.
This is the java editor Here are the screen shots for the settings. (Subsequent images)
Created attachment 50381 [details] Editor setting attachment
Created attachment 50382 [details] Editor setting attachment
Created attachment 50383 [details] Editor setting attachment
Created attachment 50385 [details] Editor setting attachment
Created attachment 50386 [details] Editor setting attachment
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
I imported my settings
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 ***
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.