Asking with open-ended questions
For code improvements, such as better error handling, troubleshooting methods, refactoring ideas, etc., open-ended questions can be used to pull new ideas from GitHub Copilot.
Description
Example
// Q: How can I improve the restorability of this function?
// A: <GITHUB COPILOT SUGGESTION>
function backupData(data) {
// Implementation here
}
// Q: What's the best way to handle errors in this context?
// A: <GITHUB COPILOT SUGGESTION>
try {
// Some operation
} catch (error) {
// Error handling
}Exercise
Checklist for Further Learning
Last updated