I use Visual Studio Code and TabNine it does something similar, friends of mine have told me to try Copilot as well, this looks impressive.
TabNine will also look in any local directories you assign to it and work off of your private unpublished code for hints, as well as github and the documentation for libraries you have loaded. (Similar to the anvil autocomplete, but with your own codebase)