Writing an autocomplete tool for IDEs is an interesting problem. Rust is using AST pruning, C# uses lazy compilation http://t.co/zabM0tsthH
miniblog.
Related Posts
Autocomplete for keywords is a surprisingly nuanced problem.
public |
In this case you need to work out what keywords can appear next, and there may be multiple valid syntaxes!
public | function
In this case you want to narrow the modifiers based on context before and after.
Design principles for autocomplete: https://jeremymikkola.com/posts/2019_03_19_rules_for_autocomplete.html
(I've read persuasive defences of sorting autocomplete more intelligently than alphabetically. Nonetheless, the articles lists a ton of great heuristics.)
Choosing a good autocomplete system is a crucial part of UI and language design: http://t.co/gozW6r9gOb (excellent post)