Hello Everyone,
1. Install in VS Code
-
Open VS Code and go to the Extensions tab
-
Search for "GitHub Copilot" and install the official extension.
Search for "Copilot Chat" and install the official extension.
-
Sign in with your GitHub account (free trial).
2. Enable and Configure Copilot
-
Open VS Code settings (
Ctrl + ,
) and search for "Copilot". -
Adjust preferences like code suggestions, inline completions, and file types where Copilot should assist.
3. Start Coding with Copilot
-
Begin typing, and Copilot will suggest code completions automatically.
-
Accept a suggestion using
Tab
or see alternative suggestions withCtrl + Space
. -
To trigger Copilot manually, press
Ctrl + Enter
.
4. Use Copilot for Comments & Functions
-
Write a comment describing a function (e.g.,
// Function to calculate tax
), and Copilot will suggest the full function. -
For more detailed suggestions, start typing the function name, and Copilot will complete it.
One annoying thing that I found is that it suggests code too often, which is not always correct. But you can always set the preference as mentioned in Point 2.
Example: This field exists in other tables for me and not in Sales Header, but it still gives me the intellisence. So ya, do not trust it blindly.
If you have tried it and have more ideas let's discuss!
Reach out to me if you have any questions or suggestions.
Check out other blogs, if you haven't already.
No comments:
Post a Comment