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 121198 - sout + tab wont work if we use backspace to delete existing characters
Summary: sout + tab wont work if we use backspace to delete existing characters
Status: RESOLVED DUPLICATE of bug 151633
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 16:01 UTC by deepakjacob
Modified: 2011-09-19 20:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deepakjacob 2007-11-05 16:01:44 UTC
"sout + TAB" (also serr + TAB) wont generate System.out.println (or System.err.println) if we use backspace to delete
existing characters in the same line.

Steps to generate bug:

1. Type something in java editor (for eg. String str = "sample";)
2. Now delete the entire line using backspace.
3. Then use sout + TAB key.
4. System.out.println is not generated.
Comment 1 Jan Lahoda 2007-11-05 17:06:10 UTC
Sorry, not reproducible to me as described. But please note that the code template/abbreviation needs to be typed as a
whole (without any backspaces, etc.). Eg. one types "sout<BACKSPACE>t" the expansion abbreviation won't work (it is
canceled when the <BACKSPACE> is pressed). I heard some discussions that, as we use Tabs to expand the abbrevs now, we
should not cancel the abbrev expansion on backspace, but that sounds more like an enhancement.
Comment 2 Vitezslav Stejskal 2008-10-29 13:02:37 UTC

*** This issue has been marked as a duplicate of 57856 ***
Comment 3 ceklock 2011-09-19 20:54:44 UTC

*** This bug has been marked as a duplicate of bug 151633 ***