# SEARCH SUBSTRINGS IN CODE COMPLETION WINDOW

**URL:** <https://forum.alternetsoft.com/t/search-substrings-in-code-completion-window/136>\
**Category:** AlterNET Studio Support\
**Tags:** wpf, editor\
**Created:** [October 24, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/search-substrings-in-code-completion-window/136 "2018-10-24T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kai.wachter](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@kai.wachter](https://forum.alternetsoft.com/u/kai.wachter)\
**Post date:** [October 24, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/search-substrings-in-code-completion-window/136/1 "2018-10-24T00:00:00Z")

</div>

Hello,  
we are using the ListMembers class to show the completion window in our HTML editor WPF application and we'd like to know if it is possible to search substrings. Our completion window entries look something like "data-order-by" or "data-requires-login" and so we'd like to be able to search for "login" for example so that in combination with Editor.CodeCompletionBox.Filtered we only see list entries that contain "login".  
Another problem for us is that typing "data-" instantly selects the first item in the list and adds it to the editor's text. Is there a way to disable certain characters like "-" from closing the code completion window?

---

<div class="post-metadata">

**Author:** ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)\
**Post date:** [October 24, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/search-substrings-in-code-completion-window/136/2 "2018-10-24T00:00:00Z")

</div>

Hi Kai,  
I've uploaded sample demo that shows how to remove "-" from delimiters and also filter out code completion box depending on what you type.  
Please try it and let me know if it works as you need.  
[https://drive.google.com/open?id=1vFF31RtInKwPtbqWUWKp0VxVgHwqxbkN](https://drive.google.com/open?id=1vFF31RtInKwPtbqWUWKp0VxVgHwqxbkN)  
regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![kai.wachter](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/k/606060/32.png) [@kai.wachter](https://forum.alternetsoft.com/u/kai.wachter)\
**Post date:** [October 25, 2018, 12:00am UTC](https://forum.alternetsoft.com/t/search-substrings-in-code-completion-window/136/3 "2018-10-25T00:00:00Z")

</div>

Hey Andrew,  
this was exactly what we needed, thanks!  
Regards
