A less intrusive AI Autocomplete Extension that works for my uses but feel free to use it as well.
Get an Gemini API key from https://aistudio.google.com/app/apikey and set it as GEMINI_API_KEY
as an environment variable or set it as gemini-autocomplete.geminiAPIKey
in your VSCode settings.
Ask Gemini for coding help using @
. It will search everything that is on that line. You can modify this character with gemini-autocomplete.promptCharacter
in your VSCode settings.
Additionally get multiline input to provide context using > Gemini Assistant: Activate Gemini Assistant
or by using the shortcut alt + g
(can also modify this in your settings)
Support languages include javascript, typescript, python, cpp, rust, kotlin, c, go, java, php, ruby, swift, objective-c, perl, shellscript, scala, haskell, dart, r, matlab, lua, css, html
This extension does not collect any user data however information is being sent to Google Gemini's API. Only the lines that are selected are sent to Gemini.
- Instead of CompletionItem maybe use grayed out text
- Allow multiline questions to provide context
- Maybe set up GitHub CI (is this really needed?)
- Auto Activate
- Update gif to not include activate
- Add Llama and ChatGPT eventually
See full change log
Initial release of Gemini Autocomplete.