Bug 205190 - Code assistant matching by substring
Summary: Code assistant matching by substring
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 11:00 EDT by Tomáš Studva CLA
Modified: 2014-06-12 02:14 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Studva CLA 2007-10-02 11:00:14 EDT
I would appreciate code assistant to filter by substring containment instead of prefix match. This feature is present in ms visual studio and makes easier navigation over classes and to reference one. To retain in favor, current prefix matching would be an alternative(or default).  

Thanks for response, Tomas Studva
Comment 1 Jerome Lanneluc CLA 2007-10-03 10:20:28 EDT
Are you suggesting that the following would propose myfoo() ?

public class X {

  void myfoo() {
  }

  void bar() {
    foo<|> // ctrl+space here
  }
}
Comment 2 Tomáš Studva CLA 2007-10-03 12:12:07 EDT
(In reply to comment #1)
> Are you suggesting that the following would propose myfoo() ?
> 
> public class X {
> 
>   void myfoo() {
>   }
> 
>   void bar() {
>     foo<|> // ctrl+space here
>   }
> }
> 

Yes, it would propose myfoo(), but the power is mainly in proposal to class names, for example:

void foo(){
  OutputS<|> // ctrl+space here 

} 
would propose not only OutputStream, but also FileOutputStream. What do you think? Very important is good ordering of proposals. 
Comment 3 Jerome Lanneluc CLA 2007-10-04 12:11:49 EDT
Yes, this sounds interesting.
Comment 4 Olivier Thomann CLA 2007-10-04 12:22:47 EDT
The idea is interesting, but it should not be activated by default to prevent the disruption of existing behavior. So it should be optional.
Comment 5 Marcel Bruch CLA 2014-06-12 02:14:26 EDT
There is a completion engine called "subwords completion" that does so. Please visit [1] for details.


[1] https://www.eclipse.org/recommenders/manual/#completion-engines