Creating a polished README with GitHub Copilot
Use Copilot’s autocomplete to craft a clear project overview, installation guide and usage examples without writing a line from scratch
Hook: By the end of this guide you’ll have a professional‑looking README file ready for your project, and you’ll have used Copilot’s AI‑powered autocomplete to generate the text without typing a single sentence yourself. It’s perfect for anyone who’s new to coding or just wants a tidy description for a hobby project.
- You have a free GitHub account (sign‑up at github.com if you don’t already have one).
- You have a repository (a folder on GitHub that holds your code) you can edit.
- You have the GitHub Copilot extension installed in Visual Studio Code (VS Code) – the free trial is enough for this tutorial.
Open the README file
In your repository, look for a file called README.md. If it doesn’t exist, create a new file with that exact name. The “.md” suffix tells GitHub the file is written in Markdown, a simple language for formatting text (headings, lists, links, etc.).
Invoke Copilot’s autocomplete
Place your cursor on the first line of the file and type a short prompt that tells Copilot what you need, such as:
# Project Name
Then press Enter. Copilot will read your prompt and start suggesting a full paragraph that describes the project. If the suggestion looks close, accept it by pressing Tab. If not, keep pressing Ctrl + Space (or the shortcut shown by the extension) to cycle through alternatives until you find one you like.
Generate an installation section
Move the cursor a few lines down, type a heading like:
Installation
Press **Enter**, then start a new line with a brief cue, for example:
```markdown
Run the following command:
Copilot will auto‑complete a shell command such as npm install or pip install -r requirements.txt, depending on the language it guesses from your repository. Review the suggestion; if your project uses a different package manager, edit the line accordingly.
Add a usage example
Below the installation heading, type another heading:
Usage
On the next line, write a short cue like:
```markdown
Start the app with:
Copilot will propose a command like npm start or python app.py. Accept the appropriate one, then add a brief description of what the command does.
Polish the README with a summary and licence note
Finally, add a short concluding paragraph. Type:
Overview
Then type a few words like “This project demonstrates …”. Copilot will fill in a concise summary. After that, add a licence badge if you have one, or simply write:
```markdown
License
This project is licensed under the MIT License.
You now have a complete README that reads naturally, thanks to Copilot’s suggestions.
<div class="g-prompt"><span class="g-prompt__lbl">💬 Try typing this</span><span class="g-prompt__box">**Example:** Your final file might look like:<span class="g-prompt__send">➤</span></span></div>
```markdown
# Weather App
A simple web app that shows the current weather for any city using the OpenWeatherMap API.
Installation
Run the following command: pip install -r requirements.txt
Usage
Start the app with: python app.py This launches the local server on http://localhost:5000.
Overview
This project demonstrates how to fetch and display weather data in a clean, responsive UI.
License
This project is licensed under the MIT License. ```
- Accepting the first suggestion blindly: Copilot can guess the wrong language or package manager. Always double‑check the generated command against your actual project.
- Leaving placeholder text: Phrases like “TODO” or “Insert description here” will appear in the final README if you don’t replace them.
- Forgetting Markdown formatting: A missing
#before a heading means the line shows up as plain text, not a heading. Use the#symbols as shown.
Open any repository you own, create a README.md, type # My Project and press Enter. Let Copilot finish the first paragraph, accept the suggestion, and you’ll have the foundation of a polished README in under two minutes. Happy writing!
✦ Original step-by-step guide by AI World Co.'s AI editorial team. Written in plain language, reviewed for accuracy.
← Retour aux actus