How to Use Prompt Files in GitHub Copilot VS Code
Master GitHub Copilot prompt files to create reusable, team-shareable prompts that inject best practices into every code generation request.Tired of copy-pasting the same instructions into GitHub Copilot? Prompt files let you package your team's conventions, framework requirements, and coding standards into reusable markdown files that activate with a slash command.In this tutorial, you'll learn: - Create prompt files in repo (.github/prompts) or user profile - Structure prompt files with YAML metadata (mode, model, description) - Use markdown for rich prompt engineering (role assignment, examples, constraints) - Invoke prompt files with slash command syntax - Leverage the Awesome Copilot repo for starter templates - Override default models per prompt file - Manage and maintain prompt files over time Real examples included: Azure Bicep resource generation following Cloud Adoption Framework and Verified Modules patterns, plus PowerShell automation with Microsoft best practices.Perfect for teams that need consistent code generation, infrastructure-as-code workflows, or any scenario where you're retyping the same detailed prompts repeatedly. ⏱️ TIMESTAMPS: 0:00 - Introduction: Prompt files vs custom instructions 0:45 - Creating your first prompt file 1:30 - Repo storage vs user profile (settings sync) 2:15 - YAML metadata: mode and model configuration 3:20 - Writing effective prompt file content 4:10 - Real examples: Azure Bicep and PowerShell prompts 5:00 - GitHub Awesome Copilot repo (starter templates) 6:15 - Invoking prompt files with slash commands 7:30 - Model overrides and context injection 8:45 - Managing and deleting prompt files 9:20 - Experimental feature status and future🔗 RESOURCES & LINKS: GitHub Awesome Copilot Repo: https://github.com/github/awesome-copilot VS Code Prompt Files Documentation: https://code.visualstudio.com/docs/copilot/customization/prompt-files Azure Cloud Adoption Framework: https://learn.microsoft.com/azure/cloud-adoption-framework Azure Verified Modules: https://azure.github.io/Azure-Verified-Modules📧 CONNECT: For GitHub Copilot tutorials, Azure infrastructure-as-code, and AI-powered development workflows, subscribe and enable notifications. See ya! -Tim (TechTrainerTim.com)
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.