Q: What is the best way to provide context to GitHub Copilot for better code suggestions?
-
A
By keeping all files closed in the editor.
-
B
By using complex function names.
-
C
By providing meaningful function names, specific function comments, and having related files open in the editor.
-
D
By writing code without any comments or documentation.
C
Answer:
C
Explanation:
Clear function names, comments, and open related files help Copilot understand the project structure and intent better.
Related Topic:
Share Above MCQ