question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sort order of autocomplete snippet items

See original GitHub issue

Do we have any control over autocomplete sorting? If so, I think that properties should be prioritized over autocompletes after a dot.

For example, in this screenshot I typed .fi. When I hit tab, I would expect .files to autocomplete, but as you can see in the screenshot, the fix template is the default when I hit tab.

sortorderinautocomplete

Possibly related to #141.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
roycwccommented, Aug 31, 2016

The ordering should consider exact match of the snippet. for example, I’ve type the exact keyword ifel, expect to see it on top of other less related suggestions

screen shot 2016-08-31 at 12 08 10 pm
1reaction
romelperezcommented, Sep 12, 2017

Hi, in the current version the code has changed and the provided solution does not work.

Is there a way currently to change the order of the autocomplete? I want my custom snippets to appear first, not the provided by the package.

Thanks in advanced.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autocomplete with Categories sorted - javascript
You can just use a function as the autocomplete source and then use $.get(), .filter() and .sort() to craft your autocomplete callback.
Read more >
Autocomplete Sorting - CodeGuage
Sorting is to rearrange a given list such that all its underlying items are in increasing or decreasing, or equivalently, ascending or descending...
Read more >
Autocomplete Sort | ASP.NET Core Forums - Syncfusion
I'm very new to Syncfusion (this is my first project) and I apologize if I missed something obvious. I've created an autocomplete control ......
Read more >
Autocomplete Items Order Issue | Notepad++ Community
Left paren ( (0x28) comes before ? (0x3F) in ASCII order, so it really should be sorted before by any normal lexicographical sort...
Read more >
Visual Studio Code - Custom Autocomplete Snippets - YouTube
Learn how to create custom autocomplete snippets in Visual Studio Code.#vscode # snippets # autocomplete.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found