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.
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.
Auto git commit message generation
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
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: