LMAOpilot README
NOTE
IMPORTANT
This extension is currently under FREE alpha testing. If you'd like to join, please create an account at https://lmaopilot.com and follow the instructions. And consider joinining the discord https://discord.gg/fRv2RSsw4N.
Overview
LMAOpilot is a VSCode extension designed to enhance your coding experience by providing intelligent code completion and suggestions. It leverages advanced AI models to predict and suggest code snippets, helping you write code faster and more efficiently.
It's designed to be used from a markdown file, but any type of file can be used.
Configuration
To use LMAOpilot, you need to configure it with your API key and user email.
Search for "lmaopilot" in the VSCode settings and add your email and auth token.
Alternatively, you can edit VSCode JSON settings directly:
{
"lmaopilot.userEmail": "your_email_here",
"lmaopilot.apiKey": "your_api_key_here"
}
Usage
Completion
- Basic Completion: Open a file/create new and type some prompt text/code and run "lmao complete" command (default shortcut is
alt+x
). If there's a selection, only selected parts are used as the prompt. LLMs input will be appended to the file. For inline completion, use alt+k
. This will update the text at the cursor location.
- Extended Completion: Open all the files you need in the context in a tab group, and in an empty file write your query and run "lmao complete ex" command (default shortcut is
alt+shift+x
). This creates a single markdown file with all the open files in the group and adds your query contents before invoking the LLM. For inline completion, use alt+shift+k
. This will update the text at the cursor location.
Canceling Completions
- Cancel Current Completion: Use the command "lmao cancel" (default shortcut is
alt+q
).
- Cancel All Completions: Use the command "lmao cancel_all" (default shortcut is
shift+alt+q
).
Practical Usage for Alpha Testers
Play with it. Ask it to write some algorithm. Review your code. Implement test cases.
Be creative!
However, keep in mind that with AI, things can be a hit or miss. You may have to try multiple times to get a good response, or change the question slightly.
Please share any and all feedback! There's a contact form on the website, a discord, and a twitter link as well.
Shortcuts
- Single file context, complete at the cursor location:
alt+k
- Editor group context, complete at the cursor location:
alt+shift+k
- Single file context, complete/append at the end:
alt+x
- Editor group context, complete/append at the end:
alt+shift+x
- Cancel the completion stream in the current doc, if any:
alt+q
- Cancel all running completion streams:
alt+shift+q
- Undo the completion stream (stop if one is running):
alt+z
- Redo the previously undone completion stream:
alt+shift+z
Status Bar
- Left Indicator: Shows the total number of currently running streams. Click to open any of them.
- Right Indicator: Per file. Shows if there's an active stream in the current document. Click to open the "cancel" command in the command palette.
Support
For support, visit LMAOpilot Support.