Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>HF Code AutocompleteNew to Visual Studio Code? Get it now.

HF Code Autocomplete

Hugging Face

|
151 installs
| (0) | Free
AI Autocomplete for OSS code-gen models
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Project for testing open source code completion models

It was forked from tabnine-vscode & modified for making it compatible with open sorurce code models on hf.co/models

Installing

Install just like any other vscode extension.

However, if you installed dev version from src before, please follow step below:

Step 1: Uninstall previous version if you have already installed huggingface-vscode under VSCode Extensions tab.

Because it was a fork of tabnine-vscode, in some previous versions, this extension will appear as Tabnine AI Autocomplete.

Clik Uninstall & click Reload to take in effect.

Step 2: Insall

Install through vscode

If the installation was successful, you will see in VSCode Extensions tab:

Testing

  1. Create a new python file
  2. Try typing def main():

Checking output

You can see input to & output from the code generation API:

  1. Open VSCode OUTPUT panel
  2. Choose Hugging Face Code
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft