Skip to main content

GitHub Copilot

GitHub Copilot integrates with Friday Dev for familiar code completion workflows.

Overview

GitHub Copilot provides:

  • Code completion - Inline suggestions
  • Familiar interface - Works like normal Copilot
  • VS Code integration - Native experience
  • Training on GitHub - Understands common patterns

When to Use Copilot

Ideal For

  • ✅ VS Code users
  • ✅ Code completion
  • ✅ Boilerplate generation
  • ✅ Pattern matching
  • ✅ Familiar workflows

Less Ideal For

  • ⚠️ Complex autonomous tasks
  • ⚠️ Multi-file refactoring
  • ⚠️ Architecture decisions

Setup

Requirements

  1. GitHub Copilot subscription
  2. VS Code with Copilot extension
  3. Friday Dev extension

Configuration

{
"agents": {
"copilot": {
"enabled": true,
"autoComplete": true
}
}
}

Usage

Inline Completion

Type code and Copilot suggests:

// Type this:
function validateEmail(

// Copilot suggests:
function validateEmail(email: string): boolean {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
}

Comment-Driven

Write comments, get code:

// Create a function that sorts an array of objects by a key
function sortByKey<T>(arr: T[], key: keyof T): T[] {
return [...arr].sort((a, b) => {
if (a[key] < b[key]) return -1;
if (a[key] > b[key]) return 1;
return 0;
});
}

Copilot Chat

Use chat for explanations:

Q: What does this regex do?
A: This regex validates email addresses...

Integration with Friday Dev

Task Context

When working on a Friday Dev task:

  1. Task description provides context
  2. Copilot suggestions are more relevant
  3. Changes tracked in task

Workflow

Friday Dev Task

Open in VS Code

Copilot assists coding

Changes sync to task

Create PR

Best Practices

Write Good Comments

// Bad - too vague
// Handle user

// Good - specific
// Validate user input and return sanitized data

Use Descriptive Names

// Copilot understands intent better
function calculateShippingCost(weight: number, distance: number)

// vs
function calc(w: number, d: number)

Accept Selectively

  • Tab to accept full suggestion
  • Ctrl+→ to accept word by word
  • Reject if suggestion is wrong

Comparison

FeatureCopilotCursorFriday Agent
Completion⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
Autonomy⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
Multi-file⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
Cost$$$/mo$$$/moPer-use

Pricing

Troubleshooting

Suggestions Not Appearing

  1. Check Copilot subscription
  2. Verify VS Code extension
  3. Check file type is supported
  4. Restart VS Code

Poor Suggestions

  1. Add more context/comments
  2. Use descriptive names
  3. Check relevant files are open
  4. Try rephrasing the comment

Sync Issues

  1. Verify Friday Dev extension
  2. Check task is open
  3. Refresh connection
  4. Restart VS Code

Next Steps