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.
The Shift-Tab key does not work as expected. Instead of back-tabbing (DELETE TAB), it always homes the cursor to the left-hand column.
Please what version/build of Netbeans are you using? Is it reproducible with a fresh userdir (eg. use --userdir /tmp/whatever when starting the IDE)? Thanks
I'm currently using the Hudson trunk builds: NetBeans IDE Dev (Build 20080516033120) Yes it is reproducible from a new userdir.
Ok, what files are you editing and what shortcuts profile are you using? I just tried in a dev build with .java and it worked fine.
I'm using the default NetBeans profile. There are only 4 available. NetBeans, Eclipse, EMACS & NetBeans 5.5.
I meant to add that I'm editing both java and php files (not both at the same time), although there is a further issue with php in that my tab settings seem to be ignored as I only get 2 spaces per tab instead the 4 I should get. That has been logged as a separate issue.
Hi carentrica! Can you please try if the issue is still reproducible in 6.5M1 build? (here: http://bits.netbeans.org/download/6.5/m1/) I did not manage to reproduce this issue, when I pressed Shift+Tab, it behave correctly (like DELETE TAB).
It is still happening. I've tried with Java and PHP. Is this perhaps a Windows specific problem?
Product Version: NetBeans IDE Dev (Build 200809180201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) I can observe this behaviour in certain situations. 1, Place the carret on an empty line, press Tab several times, then Shift+Tab -> the carret is placed back to the beginning of the line 2, Place the carret on non-empty line (but not in front of the first character), press Tab several times, then Shift+Tab -> Shift-Tab does not work at all 3, PLase the carret in front of the first character on a non-empty line and try the Tab/Shift-Tab -> in this case it works as expected.
OK, I see - this issue is probably about the case 1)... Thanks for the steps, Pavel. Because actions are called TAB->"Insert Tab" and Shift+TAB->"Delete Tab", this is certainly a defect (TAB is OK, Shift+Tab is confusing). One more usecase - suppose you have line indented by 4 levels, place caret so that it is in the middle of this indent. Press Shift+TAB. Line is indented by 3 levels and caret is before the first letter on the line... Now I can readily see where the main problem/confusion comes from... ;) Shift+Tab now behaves more like "remove indenting tab" than "remove tab", which I didn't find strange as this is the way I use it. I find more strange to have a shortcut for deleting tab, especially when you have "Replace Tabs with Spaces" turned on - what if you press TAB, LEFT, Shift+TAB??... Also, when "Replace Tabs with Spaces" is off, BACKSPACE does the job of removing tab, right? I think current behavior is as designed and the action "Delete Tab" should be renamed to "Remove Indent"...
(Pavel's step 1 is still the issue because it removes all indents on the line, which is not too handy...)
*** Issue 57683 has been marked as a duplicate of this issue. ***
Marek, these are yours now ...
Bug prior to 7.0, not touched for the last 2 years --> P4.
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