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:
Open VS Code.
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.
Search for "starcoder" in the Extensions marketplace.
Find your extension named "StarCoder" by "nearbuilders" and click Install.
Configure the Extension
After installation, restart VS Code and configure StarCoder to assist you.
Open the Command Palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on macOS).
Type Preferences: Open Settings (UI) and press Enter.
In the Settings UI, search for "nearcoder".
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
Open a new or existing file in your VS Code editor.
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.
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!