Skip to content

NEARBuilders/starcoder-extension

Repository files navigation

StarCoder: Your Web3 Coding Companion in VS Code

StarCoder is a cutting-edge Code LLM which we wrap in a VS Code extension to bring the power of AI to your fingertips. Specifically designed for Web3 developers, with StarCoder Extension you can bid farewell to tedious coding tasks and embrace a seamless coding experience.

Key Features

  • Code Completion: StarCoder understands your code and suggests completions as you type, saving you precious time and reducing errors.
  • Code Generation: Need a quick function or a complex algorithm? Just describe it in plain English, and StarCoder will generate the code for you.
  • Code Explanation: StarCoder can explain complex code snippets in simple terms, making it easier for you to understand and debug.
  • Code Refactoring: Optimize your code with a single click. StarCoder identifies areas for improvement and suggests refactoring options.

Requirements

To get started with StarCoder, you'll need:

  • VS Code 1.60 or later
  • Node.js 12 or later
  • A Web3-compatible development environment (e.g., Ethereum, Polkadot, or Solana)

Install the Extension

To install StarCoder, follow these simple steps:

  1. Open VS Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  3. Search for "starcoder" in the Extensions marketplace.
  4. Find your extension named "StarCoder" by "nearbuilders" and click Install.

Configure the Extension

After installation, restart VS Code and configure StarCoder to assist you.

  1. Open the Command Palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on macOS).
  2. Type Preferences: Open Settings (UI) and press Enter.
  3. In the Settings UI, search for "nearcoder".
  4. You should see settings related to your extension. Set the API URL to the inference API of our baseline model at huggingface: 'https://api-inference.huggingface.co/models/bigcode/starcoder2-3b' and set the Bearer Token to your hugging face token (available at https://huggingface.co/settings/tokens). If necessary, update the token using the command in the extension.

Use the Extension for Inline Completion

  1. Open a new or existing file in your VS Code editor.
  2. Start typing your code. Your extension should automatically provide suggestions based on your inputs.

About StarCoder

StarCoder is an open-source project developed by a passionate community of Web3 developers. We're constantly working to improve the extension and welcome your feedback and contributions.

Join the Community

Happy Coding!

With StarCoder by your side, you'll be able to focus on what matters most: building innovative Web3 applications. Get started today and experience the power of AI-assisted coding!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published