P

How to Write a Blog Post with GitHub Copilot

GitHub Copilot, the AI-powered coding assistant from OpenAI and GitHub, is not limited to code generation. It can also help you write blog posts directly from your code editor. Whether you are a developer wanting to share your technical knowledge or a content creator using VS Code as a writing environment, Copilot can significantly speed up your writing process. In this tutorial, you will learn how to leverage GitHub Copilot to structure, write, and polish a complete blog post, from initial brainstorming to final proofreading. You will discover how to articulate your intentions to get relevant suggestions and how to maintain editorial control over the generated content.

Prerequisites

  • 1.Have Visual Studio Code installed on your computer
  • 2.Have an active GitHub Copilot subscription (individual, business, or enterprise)
  • 3.Have the GitHub Copilot and GitHub Copilot Chat extensions installed in VS Code
  • 4.Be signed in to your GitHub account in VS Code

Steps

1

Create the File and Set the Article Context

Create a new Markdown (.md) file in VS Code. At the top of the file, write a comment or header describing the topic, target audience, and desired tone for your article. This initial context guides Copilot's suggestions. For example, add front matter with the title, category, and a short description. The more context you provide, the more relevant and coherent Copilot's suggestions will be with your editorial intent.

Open Copilot Chat (Ctrl+Shift+I) and type: "Propose a detailed outline for a blog post about [YOUR_TOPIC]. The target audience is [AUDIENCE]. The tone should be [PROFESSIONAL/CONVERSATIONAL/TECHNICAL]. The article should be around [X] words."

Tip: Name your file with a descriptive title like 'guide-docker-beginners.md' — Copilot uses the filename as a contextual clue for its suggestions.
2

Generate the Article Structure and Outline

From the outline proposed by Copilot, create your article structure with H2 and H3 Markdown headings. Write each section heading, then let Copilot suggest subsections. Accept or modify each suggestion with Tab to accept or Escape to dismiss. This step gives you a solid skeleton before writing the content. Feel free to rearrange sections according to your editorial logic.

Under each H2 heading, start typing an introductory sentence and let Copilot complete it. You can also use Copilot Chat: "Expand the following outline by adding 2-3 subpoints per section: [paste your outline]"

Tip: Use Ctrl+Enter to see multiple alternative suggestions from Copilot and choose the best one.
3

Write Content Section by Section

Go through each section and start writing the first sentences yourself. Copilot will automatically complete your paragraphs with inline suggestions. For technical passages, describe in a comment what you want to explain and let Copilot generate the content. Alternate between your own writing and Copilot's suggestions to maintain a natural and authentic style. Treat Copilot as a co-writer, not as the primary writer.

For each section, use Copilot Chat: "Write a 100-word paragraph explaining [CONCEPT] in an accessible way for [AUDIENCE]. Include a concrete example."

Tip: Always write the first sentence of each paragraph yourself — this sets the tone and direction for Copilot, which will then produce much more coherent continuations in your style.
4

Enrich with Examples, Lists, and Visual Elements

A good blog post contains varied elements: bullet lists, code blocks, quotes, comparison tables. Ask Copilot to generate these elements to illustrate your points. For technical articles, Copilot excels at producing commented code examples. For non-technical articles, ask it for analogies, statistics, or case studies. Also, add placeholders for images you will integrate later.

In Copilot Chat: "Generate a Markdown comparison table between [OPTION_A] and [OPTION_B] with the following criteria: [CRITERIA]." or "Propose 5 concrete examples to illustrate [CONCEPT]."

Tip: Ask Copilot to format directly in Markdown — it handles tables, numbered lists, syntax-highlighted code blocks, and links very well.
5

Proofread, Optimize, and Finalize the Article

Use Copilot Chat to proofread and improve your article. Ask it to identify repetitions, check tone consistency, suggest transitions between sections, and optimize headings for SEO. Select specific passages and request rewrites. Finally, have it generate a meta description and keyword suggestions. Always proofread the final result yourself to ensure information accuracy and the authenticity of your voice.

Select the entire article and in Copilot Chat: "Proofread this article and suggest: 1) sentences to rephrase for clarity, 2) missing transitions between sections, 3) a 155-character SEO meta description, 4) 5 relevant keywords."

Tip: Use the text selection feature + Copilot Chat to work on specific passages rather than the entire article — suggestions will be more targeted and relevant.

Common mistakes to avoid

  • Accepting all suggestions from Copilot without proofreading — generated content may contain inaccuracies or outdated information that must always be checked
  • Not providing enough initial context — an empty file without indication of topic, tone, or audience will produce generic and unusable suggestions
  • Letting Copilot write the entire article — the result will lack personality and authentic voice, and readers easily recognize fully AI-generated text
  • Forgetting to verify facts and sources — Copilot can invent statistics, quotes, or references that seem credible but are false
  • Using Copilot only in inline mode and ignoring Copilot Chat — the chat allows much richer interactions for brainstorming, restructuring, and proofreading

FAQ

Is GitHub Copilot suitable for writing non-technical articles?
Yes, GitHub Copilot can assist in writing any type of blog post, not just technical ones. Simply provide appropriate context in your Markdown file: topic, tone, audience. However, it excels particularly in content related to technology, development, and topics where code examples are relevant. For purely creative or literary content, other AI tools like ChatGPT or Claude may be more suitable.
Is the content generated by Copilot unique and royalty-free?
Copilot's suggestions are generated by an AI model and are not copied verbatim from existing sources in most cases. However, it may reproduce common phrases or passages similar to training data. It is recommended to always customize the generated content, check originality with a plagiarism detection tool, and never publish a fully generated text without personal review and rewriting.
What is the difference between inline suggestions and Copilot Chat for writing?
Inline suggestions appear automatically while you type and are ideal for completing sentences or paragraphs in progress. Copilot Chat is a conversational interface that allows you to give complex instructions: generate an outline, rephrase a passage, create a table, or proofread an entire article. For writing articles, combine both: use the chat for planning and structure, and inline suggestions for fluid content writing.

Related tutorials

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More tutorials

How to Write a Blog Post with Midjourney

Midjourney is an AI-powered image generation tool that can radically transform the visual quality of your blog posts. Rather than searching for generic stock photos, you can create unique illustrations perfectly tailored to your content. In this tutorial, we'll explore how to use Midjourney to produce impactful visuals for each section of your article: cover image, concept illustrations, stylized infographics, and brand graphic elements. Whether you're a blogger, web writer, or content creator, mastering Midjourney will enable you to publish professionally-looking articles without a graphic designer, while maintaining a consistent visual identity across your entire blog.

How to Write a Business Proposal with GitHub Copilot

GitHub Copilot, GitHub's AI assistant, is not limited to code generation. Thanks to its natural language understanding capabilities, it can help you

How to Write a Business Proposal with Midjourney

Midjourney is an AI image generation tool that can transform your business proposals into visually striking documents.

How to Write a Business Proposal with Mistral

Writing a compelling business proposal is a strategic exercise that requires both rigor and creativity. Thanks to Mistral, the leading French AI, you can significantly accelerate this process while maintaining a high level of quality. Mistral helps you structure your pitch, customize your offer according to the prospect, and produce a professional document ready to send. In this tutorial, you will learn how to leverage Mistral step by step to create impactful business proposals that maximize your conversion chances. Whether you are a freelancer, a salesperson, or a SME manager, this method will save you valuable time while improving the quality of your business documents.

How to Write a Business Proposal with Sora

Writing a compelling business proposal is a strategic exercise that can make the difference between winning a contract or losing an opportunity. With Sora, OpenAI's video generation tool, you can now enrich your business proposals with immersive visual content that captures your prospects' attention. Imagine presenting your solution with a realistic demo video, illustrating use cases, or creating a convincing scenario — all generated by AI. In this tutorial, we guide you step by step to integrate Sora into your proposal writing process, so you can produce proposals that stand out visually and strengthen your sales pitch.

How to Write a Cover Letter with Claude

Writing a convincing cover letter is often a difficult exercise. You need to find the right tone, highlight your skills without sounding arrogant, and personalize each application. Claude, Anthropic's AI assistant, can guide you through every step of this process. Thanks to its analytical and writing capabilities, Claude helps you structure your ideas, tailor your message to the target job, and produce a professional and impactful letter. This tutorial walks you step by step to leverage Claude's full potential and turn your applications into real assets. You'll learn how to provide the right context, iterate effectively, and get a personalized result that reflects your unique background.

Get new prompts every week

Join our newsletter.