Getting Started With MPLAB® AI Coding Assistant
Downloading and Installing the MPLAB® AI Coding Assistant Extension
Before you begin, ensure you have downloaded Microsoft® Visual Studio® Code (VS Code®). If needed, you can download it here.
Download the MPLAB Extension pack from the VS Code Marketplace page for MPLAB Extensions. The MPLAB AI Coding Assistant is included in this extension pack.
Applying the API Key
Microchip will provide free access to Large Language Models (LLM) - the Microchip Chatbot.
Go to this link to log in to myMicrochip and obtain your API Key.
If you are not signed in | If you are signed in |
Sign in with your myMicrochip login credentials | You will not be asked to sign in again |
A Terms and Conditions window will appear. Select I Agree.
Select Copy Access Key underneath the unique key that has been generated for you.
Go back to VS Code and paste the key under Microchip API Key, then click Connect.
You have now successfully installed the plugin. The chatbot will by default appear to the left and a quick tutorial on getting started will appear at the top.
Begin communicating with the chatbot - type in "Hello".
Enabling/Disabling Autocomplete
On the bottom leftmost corner of the window, you should see the Autocomplete icon:
Enable or disable the feature by clicking on the Autocomplete icon and making the selection you want.
Common Features
Autocomplete
Receive inline code suggestions as you type. Click TAB to accept the suggestion.
Chat
Ask Microchip-specific questions as you code from the sidebar without leaving the editor. Use CTRL+L to copy code into the chat window.
Datasheets
@datasheet
Chat with Microchip datasheets in your opened MPLAB project.
Folder
@folder
Query a specific folder. Before using this command, ensure that codebase indexing is complete.
Inline Edit
Use inline suggestions within code by using CTRL+I.
Terminal
@terminal
Fix errors reported in the terminal.
Codebase
@codebase
Query the entire codebase. Before using this command, ensure that codebase indexing is complete.
Slash
Activate this shortcut by typing / and making your desired selection from the dropdown.