Useful when you already know - which files are relevant - how to do something
Specify context manually
Use the @
system to tag the relevant files, and provide a specific prompt. The more specific the requirements are, the higher quality the response will be. See Prompt Best Practices.
Get Code Suggestion Across Multiple Files
Useful when you want the AI’s suggestions on - which files are relevant - how to do something
Generate high level plan
EasyCode will enter “Codebase Planning” mode when
/Plan
slash command. (learn more about Slash Commands).Examples:
/Plan
Add a new feature such that _____/Plan
How do I ________/Plan
Add support for SSOStart Implementation
Enter implementation mode by clicking “Start Implementation” from “Codebase Planning”. Once you are in “Codebase Implementation” mode, EasyCode will suggest code changes on a file by file basis.
At the end of each implementation step, you can either
Generate Code Diff (Experimental)
This is experimental. Sometimes the diff generated will be incomplete, meaning it misses some of the changes it’s supposed to add. So always verify that all the change are actually applied.
Simply ask the AI to explain something from the extension chat window. Make sure to have “Ask Codebase” checked.
Examples:
Tips:
From the extension chat window, you can ask questions about specific files by adding “@” in front of it. This will force feed the relevant context to the AI. Example:
@openAIClient.ts
works. @product.ts
and @cart.ts
communicate with each other. Activate from the context menu by selecting a block of code, right click, and choose “Ask GPT: What does this do”, or ask a more specific question by choose “Ask GPT” and typing in a specific prompt.
From the extension chat window, type a prompt that starts with “where”. Example:
For best results, this should be a follow up question to an initial prompt of “Explain ___”. For example:
For now, you need to copy the mermaid code, and paste it into a Mermaid editor to visualize. (We will add native rendering of mermaid diagram soon).
Use EasyCode chat the same way you’d use ChatGPT, leave “Ask Codebase” unchecked.
Use CMD+E
or CTRL+E
to quickly edit code with the AI. Start by selecting some code, press the keyboard shortcut, and describe how the code should be changed. The new code will stream in.
⚠️ Only supports gpt-3.5-16k and gpt-4-turbo.
EasyCode provides a “quick fix” suggestions on how to fix lint errors.
Copyright © 2024 Personabo Technologies, Inc. All rights reserved. Privacy Policy