This is the Fabelous autocoder. It is based on the Ollama Autocoder Extension
Go to file
Falko Victor Habel 6a953b7a12 preview extra lines 2024-10-03 12:03:05 +03:00
.vscode forgot to start a git history 2023-12-20 03:36:55 -06:00
src preview extra lines 2024-10-03 12:03:05 +03:00
.eslintrc.js forgot to start a git history 2023-12-20 03:36:55 -06:00
.gitignore added vsix to gitignore 2023-12-20 18:32:02 -06:00
LICENSE corrected speeling misstake 2024-06-02 16:32:54 +02:00
README.md re changed path 2024-09-10 14:48:57 +02:00
demo.gif corrected paths 2024-09-10 14:47:46 +02:00
icon.png first commit as Fableous coder main changes commited 2024-06-02 15:42:29 +02:00
package.json fixed bug for showing header 2024-10-02 15:48:08 +03:00
tsconfig.json forgot to start a git history 2023-12-20 03:36:55 -06:00

README.md

Fabelous Autocoder

Fabelous Autocoder is a Visual Studio Code extension that provides an easy-to-use interface for Ollama autocompletion. This extension allows developers to use Ollama's powerful language models to generate code completions as they type. It is highly customizable, allowing users to configure various settings to fit their needs.

Fabelous Autocoder in Action

Features

  • Autocompletion using Ollama language models
  • Customizable completion keys
  • Inline preview of generated completions
  • Configurable maximum tokens predicted
  • Configurable prompt window size
  • Configurable response preview delay
  • Configurable temperature for the model

Installation

You can also download the extension from the release tab of the following Git repository:

Fabelous-Autocoder Git Repository

To do so, follow these steps:

  1. Visit the repository link.
  2. Click on the "Releases" tab.
  3. Look for the latest release and click on it.
  4. Download the extension file compatible with your operating system.
  5. Install the extension manually in Visual Studio Code.

After installation, you'll be able to use the Fabelous Autocoder extension in your Visual Studio Code environment.

Configuration

Fabelous Autocoder is highly customizable, allowing users to configure various settings to fit their needs. To access the configuration settings, follow these steps:

  1. Open Visual Studio Code
  2. Click on the Settings icon on the sidebar (or press Ctrl+,)
  3. Search for "Fabelous Autocoder" in the search bar
  4. Configure the desired settings

Here are some of the available configuration options:

  • fabelous-autocoder.endpoint: The endpoint of the Ollama REST API
  • fabelous-autocoder.authentication: The authentication token for Ollama
  • fabelous-autocoder.model: The model to use for generating completions
  • fabelous-autocoder.max tokens predicted: The maximum number of tokens generated by the model
  • fabelous-autocoder.prompt window size: The size of the prompt in characters
  • fabelous-autocoder.completion keys: The characters that trigger the autocompletion item provider
  • fabelous-autocoder.response preview: Whether to show a preview of the generated completion inline
  • fabelous-autocoder.preview max tokens: The maximum number of tokens generated for the response preview
  • fabelous-autocoder.preview delay: The time to wait before starting inline preview generation
  • fabelous-autocoder.continue inline: Whether to continue autocompletion after the inline preview
  • fabelous-autocoder.temperature: The temperature of the model
  • fabelous-autocoder.keep alive: The time in minutes before Ollama unloads the model

Note that changing the completion keys setting requires a reload of Visual Studio Code.

Usage

To use Fabelous Autocoder, simply start typing in the editor. When the configured completion keys are pressed, the extension will generate a completion using the configured Ollama model. The completion will be displayed inline with a preview of the generated code. If the continue inline setting is enabled, the extension will continue generating completions after the inline preview.

To generate a multi-line completion, press Enter after the inline preview. This will open a new editor with the generated completion.

To customize the behavior of the extension, see the Configuration section above.

License

Fabelous Autocoder is licensed under the CC BY-ND 4.0 license. See the LICENSE file for more information.

Acknowledgments

Fabelous Autocoder was created by Falko Habel. It was inspired by the Ollama project.