The Coding Assistant is a VSCode extension that utilizes Natural Language Processing (NLP) in the form of Large Language Models (LLMs) and Transformers to improve the software development experience within the IDE.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
The Coding Assistant is a VSCode extension that utilizes Natural Language Processing (NLP) in the form of Large Language Models (LLMs) and Transformers to improve the software development experience within the IDE. This extension’s features include code autocompletion and git commit message generation. The Coding Assistant aims to expedite the development process while providing general quality of life improvements to developers.
Features:
Code autocompletion
Auto git commit message generation
Getting Started
Create a Hugging Face account at https://huggingface.co/.
Once logged in, create a read/write access token by accessing your account settings and navigating to “Access Tokens” on the sidebar
Paste the token into the extension setting correlated to API key
Search “inline” in Settings and check the “Inline Suggest” box
Usage
Code completion suggestions will be generated via typing code and can be cycled through with Alt + [ or ]. Accept a suggestion with the Tab key.
To generate git commit messages, run git diff in the command line to fetch the changes made since the last commit, and paste them into a text file. Highlight the entire block, then right click and select the Git Commit Message option. The generated commit message should appear above the git diff block.
Future Work and Improvements
In the future, more can be added to this extension to make it more useable and more helpful:
Add in other two features from project* (Text to Code, Code Commenter)
Implement other possible features (code clone detection, auto generation of unit tests)
Find and/or create more representative datasets on which to train models
Also, many aspects of the extension can be improved, such as:
Autocomplete: GPT-CC - Open source Github Copilot model based on GPT-3, trained on publicly available code from GitHub repositories meeting specific criteria.
Auto git commit message generation: CodeTrans - Pre-trained using t5 large model architecture and fine-tuned on the tokenized git commit message generation task.