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 24391 - [completion] Does not show locally declared variable
Summary: [completion] Does not show locally declared variable
Status: RESOLVED DUPLICATE of bug 18888
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 2 votes (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 17:19 UTC by Dominique Jean-Prost
Modified: 2007-11-05 13:44 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 Dominique Jean-Prost 2002-06-04 17:19:10 UTC
Take the following code

public void foo(String toto)
{
 to|
 String bar;
 ba|
}

If you press ctrl-space just after "to", code completion 
doesn't show the method parameter toto.
If you press ctrl-space just after "ba", code completion 
doesn't show the locally declared variable bar neither.

I think both should work.
Comment 1 vbrabant 2002-06-30 22:14:03 UTC
I have no idea if it can help you, but you have also the 
CTRL-L and CTRL-K combinaison that will propose already 
type words.
in your example,

public void foo(String toto)
{
 to|
 String bar;
 ba|
}
CTRL-K after to will display toto
CTRL-K after ba will display bar

In the following example
public void foo(String toto, String totor)
{
 to|
}
CTRL-K after to will display totor.
If you press one more CTRL-K, it will display toto.

Maybe it can help you.

I use that combinaision each days and just type two or 
three letters, then ctrl-K and system propose already 
typed words for you.

Now, I am no more afraid to type long variable name 
because I know that I don't have to type it anew 
completely.

Comment 2 Marek Grummich 2002-07-22 10:08:53 UTC
Set target milestone to TBD
Comment 3 psuk 2004-03-19 19:38:00 UTC

*** This issue has been marked as a duplicate of 18888 ***