Take advantage of 2 million token context window and use Gemini as your Fill-in-the-middle, refactoring coding assistant. Manually select scope of your repository to be attached in each request and get the best coding assistance possible.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Gemini Coder let's you use Gemini for FIM (Fill in the middle) and file refactoring.
With dedicated context panel, you can granually select context attached with each completion/refactoring request.
Extension also lets you copy context to clipboard so you can comfortably switch between the editor and AI Studio.
Features
Lightweight, 100% free, MIT licensed.
Autocomplete on cursor position.
Refactor current file.
Manually set context for all requests.
Copy context and continue your work in AI Studio.
Rate limited Gemini Pro requests fallback to Gemini Flash.
Manually add experimenal models or other OpenAI compatible providers.
How to Use
Open Context View and select all relevant folders/files which you want to attach as context in each completion request.
Place the cursor where you want to insert code completion.
Open the Command Palette (Ctrl+Shift+P).
Run the command Gemini Coder: Autocomplete ....
Bind the command to a key combination of your choice in Preferences: Open Keyboard Shortcuts, e.g. Ctrl+P for Primary Model and Alt+P for Secondary Model.