GitHub

3 Mins Read

GitHub Copilot Modes: Edit, Ask & Action

Voiced by Amazon Polly

The Developer's AI Toolbox – Expanded with Real-World Use Cases

Modern development is about speed, clarity, and reducing repetitive work. GitHub Copilot now offers three smart ways to collaborate with AI inside your IDE:

Edit Mode – Inline code rewriting and refactoring

Ask Mode – Conversational help and documentation

Action Mode – Context-aware automation and file-level operations

Let’s look at how these can be used together across real workflows, with a deeper focus on Action Mode’s potential.

Enhance Your Productivity with Microsoft Copilot

  • Effortless Integration
  • AI-Powered Assistance
Get Started Now

Edit Mode: Improve What’s Already There

 When to Use:

  • Quick changes to existing code
  • Language or style conversions
  • Bug fixes or optimizations

Common Examples:

  • “Convert this callback to a Promise”
  • “Make this function pure”
  • “Add JSDoc comments”

Ask Mode: Learn Without Leaving the IDE

When to Use:

  • Understanding unfamiliar code
  • Exploring best practices
  • Generating code snippets

Common Prompts:

  • “What is the best way to debounce in React?”
  • “Why is this API call failing with 401?”
  • “Show me a Python function to validate email addresses”

 When to Use:

  • Quick changes to existing code
  • Language or style conversions
  • Bug fixes or optimizations

Common Examples:

  • “Convert this callback to a Promise”
  • “Make this function pure”
  • “Add JSDoc comments”

Ask Mode: Learn Without Leaving the IDE

When to Use:

  • Understanding unfamiliar code
  • Exploring best practices
  • Generating code snippets

Common Prompts:

  • “What is the best way to debounce in React?”
  • “Why is this API call failing with 401?”
  • “Show me a Python function to validate email addresses”

Action Mode: Automate Repetitive and Complex Dev Tasks

This is where GitHub Copilot really stretches its wings. It performs entire tasks — like setting up config files, writing tests, or fixing code — with deep awareness of your project context.

More Real-World Use Cases

Auto-Generate Storybook Stories

“Add Storybook stories for all components in /components/ui

Copilot:

  • Generates .stories.jsx or .mdx files
  • Automatically handles props and examples

Internationalize a Component

“Update this page to use i18n translation hooks”

Copilot:

  • Replaces hardcoded strings with translation keys
  • Imports and uses your project’s i18n hook or context

Prepare Code for Open Source

“Generate a README and MIT license for this repo”

Copilot:

  • Write a polished README.md with usage instructions
  • Adds a LICENSE file based on common standards

Clean Up a Legacy Codebase

“Find and refactor all functions using var to use let/const”

Copilot:

  • Traverses multiple files
  • Applies consistent ES6+ syntax
  • Preserves logic while modernizing style

Combining All Three Modes in Dev Workflows

Here are a few combined-mode scenarios that mimic how real developers work:

Workflow: Build a New Auth Feature

  1. Ask Mode:

“How do I build a login form with NextAuth.js?”

  1. Action Mode:

“Scaffold a login page with NextAuth.js and Tailwind”

  1. Edit Mode:

“Refactor login handler to separate concerns”

Result: You’re up and running with a full auth flow in 10 minutes — including UI, logic, and backend integration.

Workflow: Secure an Existing App

  1. Ask Mode:

“What are common Node.js security best practices?”

  1. Action Mode:

“Add Helmet and configure CSP headers”

  1. Edit Mode:

“Refactor middleware to include rate limiting”

What's Coming Next for Copilot?

The direction Copilot is heading suggests even more robust AI developer agents:

  • Code-aware project planning
    “Add JWT-based user roles and permissions” → Action Mode could generate routes, guards, and models.
  • End-to-end scaffolding
    Full CRUD modules, dashboard UIs, and test coverage with one command.
  • Code reviews and PRs
    AI that opens PRs with detailed descriptions, test coverage reports, and inline comments.
  • Terminal + CLI control
    “Set up Docker for this project” → Copilot builds Dockerfile, .dockerignore, and docker-compose.yml.

Developer Takeaway

GitHub Copilot is no longer just autocomplete. It’s a collaborative AI that adapts to how you code. The key is learning when and how to use each mode:

Mode Ideal For Interaction Type
Edit Refactors, rewrites Highlight + Command
Ask Guidance, docs, logic Prompt-only
Action Automate, scaffold, fix Full-task execution

Pro Tip: Use all three modes in tandem. Ask → Edit → Act = maximum efficiency.

Conslusion:

In a world where speed and clarity are king, Copilot’s Action Mode is your silent productivity engine. It’s your setup script writer, test generator, and context-aware problem solver — always ready, never tired.

Become an Azure Expert in Just 2 Months with Industry-Certified Trainers

  • Career-Boosting Skills
  • Hands-on Labs
  • Flexible Learning
Enroll Now

About CloudThat

CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.

CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 850k+ professionals in 600+ cloud certifications and completed 500+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training PartnerAWS Migration PartnerAWS Data and Analytics PartnerAWS DevOps Competency PartnerAWS GenAI Competency PartnerAmazon QuickSight Service Delivery PartnerAmazon EKS Service Delivery Partner AWS Microsoft Workload PartnersAmazon EC2 Service Delivery PartnerAmazon ECS Service Delivery PartnerAWS Glue Service Delivery PartnerAmazon Redshift Service Delivery PartnerAWS Control Tower Service Delivery PartnerAWS WAF Service Delivery PartnerAmazon CloudFront Service Delivery PartnerAmazon OpenSearch Service Delivery PartnerAWS DMS Service Delivery PartnerAWS Systems Manager Service Delivery PartnerAmazon RDS Service Delivery PartnerAWS CloudFormation Service Delivery PartnerAWS ConfigAmazon EMR and many more.

WRITTEN BY Shyla J

Shyla is an MCT and works on cloud platforms like AWS and Azure. She is certified as an Azure Administrator and works on DevOps tools like Ansible, and Terraform, to create and deploy highly available infrastructure on AWS and Azure.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!