Skip to content

Commit c976f53

Browse files
authored
Revise custom instructions tutorial examples
Updated examples and formatting for custom instructions in the tutorial.
1 parent 52aba14 commit c976f53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/copilot/tutorials/use-custom-instructions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Use `copilot-instructions.md` for:
125125

126126
**Example structure for `copilot-instructions.md`**:
127127

128-
```markdown
128+
```markdown copy
129129
# General Code Review Standards
130130

131131
## Code Quality Essentials
@@ -160,7 +160,7 @@ Use `*.instructions.md` files with the `applyTo` frontmatter property for:
160160

161161
Create a file called `python.instructions.md` in the `.github/instructions` directory:
162162

163-
````markdown
163+
````text copy
164164
---
165165
applyTo: "**/*.py"
166166
---
@@ -201,7 +201,7 @@ with open('data.txt') as file:
201201

202202
Create a file called `frontend.instructions.md` in the `.github/instructions` directory:
203203

204-
````markdown
204+
````text copy
205205
---
206206
applyTo: "src/components/**/*.{tsx,jsx}"
207207
---
@@ -248,7 +248,7 @@ Each file should have a clear, specific purpose and appropriate `applyTo` frontm
248248

249249
Based on what works well with {% data variables.copilot.copilot_code-review_short %}, here's a recommended template for structuring your instructions:
250250

251-
````markdown
251+
````text copy
252252
---
253253
applyTo: "**/*.{js,ts}" # If this is a path-specific file
254254
---
@@ -365,7 +365,7 @@ Here's a complete example that incorporates all the best practices from this tut
365365

366366
**File: `.github/copilot-instructions.md`**
367367

368-
```markdown
368+
```markdown copy
369369
# General Code Review Standards
370370

371371
## Purpose
@@ -412,7 +412,7 @@ Always prioritize security vulnerabilities and performance issues that could imp
412412

413413
**File: `.github/instructions/typescript.instructions.md`**
414414

415-
````markdown
415+
````text copy
416416
---
417417
applyTo: "**/*.{ts,tsx}"
418418
---

0 commit comments

Comments
 (0)