🎓 All Courses | 📚 GitHub Copilot University Syllabus
Stickipedia University
📋 Study this course on TaskLoco

The quality of Copilot's suggestions depends heavily on the quality of your comments. Better comments = better code generation.

Comment Techniques

  • Describe intent: "// Parse ISO date string and return formatted MM/DD/YYYY"
  • Specify constraints: "// Must handle null input gracefully"
  • Give examples: "// e.g. input: '2024-01-15', output: '01/15/2024'"
  • Name your parameters: Copilot reads parameter names as hints

Golden Rule

Write the comment you'd write for a junior developer. Copilot reads it the same way.


YouTube • Top 10
GitHub Copilot University: Writing Better Comments for Better Code
Tap to Watch ›
📸
Google Images • Top 10
GitHub Copilot University: Writing Better Comments for Better Code
Tap to View ›

Reference:

Copilot best practices

image for linkhttps://docs.github.com/en/copilot/using-github-copilot/best-practices-for-using-github-copilot

📚 GitHub Copilot University — Full Course Syllabus
📋 Study this course on TaskLoco

TaskLoco™ — The Sticky Note GOAT