# show selectedhint in very long list of hints..

**URL:** https://discuss.codemirror.net/t/show-selectedhint-in-very-long-list-of-hints/2255
**Category:** Uncategorized
**Created:** [January 7, 2020, 2:38am UTC](https://discuss.codemirror.net/t/show-selectedhint-in-very-long-list-of-hints/2255 "2020-01-07T02:38:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kkongchi](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kkongchi](https://discuss.codemirror.net/u/kkongchi)
#### Post date: [January 7, 2020, 2:38am UTC](https://discuss.codemirror.net/t/show-selectedhint-in-very-long-list-of-hints/2255/1 "2020-01-07T02:38:19Z")

</div>

Hi

Sorry if this is duplicated…

I’m working on custom hint provider and it contains 100+ hints  
When I set selectedhint on for example 50th hint, it looks working, but only I can see it after scrolling down to that hint. Could someone please let me know how i can show selected hint even it’s located in lower part of the hint?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [January 7, 2020, 6:41am UTC](https://discuss.codemirror.net/t/show-selectedhint-in-very-long-list-of-hints/2255/2 "2020-01-07T06:41:38Z")

</div>

I’ve pushed a patch that scroll the initially selected item into view. That sounds like it should solve this issue.

---

<div class="post-metadata">

### Author: ![kkongchi](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kkongchi](https://discuss.codemirror.net/u/kkongchi)
#### Post date: [January 7, 2020, 9:26am UTC](https://discuss.codemirror.net/t/show-selectedhint-in-very-long-list-of-hints/2255/3 "2020-01-07T09:26:47Z")

</div>

Thanks! it’s working well.
