Skip to content

Commit 6ab3ea6

Browse files
committed
Update docs custom instructions and add review prompt
1 parent 7c5a8a0 commit 6ab3ea6

File tree

3 files changed

+108
-136
lines changed

3 files changed

+108
-136
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,3 @@
11
# VS Code Docs Writing Guidelines
22

3-
## Introduction
4-
5-
These are our VS Code documentation writing style guidelines.
6-
7-
## General Style tips
8-
9-
* Get to the point fast.
10-
* Talk like a person.
11-
* Simpler is better.
12-
* Be brief. Give customers just enough information to make decisions confidently. Prune every excess word.
13-
14-
## Capitalization
15-
16-
* Always capitalize proper nouns.
17-
* Lowercase everything except the first word in a sentence, UI label, phrase, heading, or title (including the titles of blogs, articles, and press releases).
18-
* Don’t capitalize the spelled-out form of an acronym unless it's a proper noun.
19-
* Use title-style capitalization for product and service names, book and song titles, article titles in citations, names of blogs, and titles of people (Vice President, for example).
20-
* In programming languages, follow the traditional capitalization of keywords and other special terms.
21-
* Don't use all uppercase for emphasis.
22-
* Don't use all lowercase as a design choice.
23-
* Use sentence-style capitalization for everything except proper nouns.
24-
25-
## Grammar
26-
27-
* Use present-tense verbs—verbs that indicate the action is happening now, like is and open. Avoid will, was, and verbs ending in –ed, which indicate that text isn't in the present tense.
28-
* For most content, write simple statements of fact (called the indicative mood). Use direct commands (imperative mood) for procedures and instructions. Use wishes, hypotheses, and suggestions (subjunctive mood) sparingly.
29-
* Use active voice (where the subject performs the action) whenever you can. In passive voice, the receiver of the action is the subject.
30-
* Match a verb with its subject in person and number.
31-
* Use second person most of the time. Second person often uses the pronoun you, as though you're speaking to the reader.
32-
* Don't use gender-specific singular pronouns (he or she) in generic references. Instead, use you or refer to someone's role.
33-
* Be careful with words ending in –ing, which can play different roles in a phrase. For example, in the phrase meeting requirements, make sure it's clear whether this is a discussion about requirements for a meeting or how to meet requirements.
34-
* Prepositional phrases modify something else in a sentence. For example, in The reading pane displays the content of the selected message, the phrase of the selected message modifies the content. Avoid using consecutive prepositional phrases. Long chains of prepositional phrases are hard to read and interpret.
35-
* Modifiers are words or phrases that modify other words or phrases. Make sure it's clear what they modify. For example, in the phrase the selected text only is modified, the word only could modify text or is modified. Rewrite as only the selected text is modified to clarify.
36-
37-
## Numbers
38-
39-
* Spell out numbers for zero through nine, unless space is limited. Use numerals for 10 and above.
40-
* Spell out numbers at the beginning of a sentence.
41-
* Spell out ordinal numbers such as first, second, and third. Don't add -ly to form adverbs from ordinal numbers.
42-
* Use numerals for numbers the user is directed to type, dimensions, time of day, percentages, coordinates, measurements of distance, temperature, volume, size, and so on.
43-
44-
## Procedures and instructions
45-
46-
### Numbered steps
47-
48-
* Write a complete sentence for each step: capitalize the first word and end the sentence with a period.
49-
* Use imperative verb forms.
50-
* Consider using a heading that tells customers what the procedure will help them do.
51-
* Keep it short—ideally, fit the whole procedure on one screen. Omit unnecessary details. Combine simple actions that occur in the same place in the UI in a single step. Include actions that finalize a step, such as selecting the OK or Apply button, in related steps.
52-
* Make sure the customer knows where the action in the step takes place. Provide a brief phrase if you need to, such as on the Design tab, …. Or provide an introductory step to avoid any confusion: On the ribbon, go to the Design tab.
53-
* If there’s only one step, use the format you use for procedures with multiple steps, but replace the number with a bullet.
54-
* If your editorial style guide allows it, abbreviate simple sequences of menu interactions with right angle brackets. Don’t use bold formatting for the brackets. Include a space before and after each one.
55-
56-
### Interactions with UI
57-
58-
Use the following verbs, which describe any input method—touch, mouse, keyboard, voice, and so on.
59-
60-
* Open, for apps, shortcut menus, files, and folders.
61-
* Close, for apps, blades, dialog boxes, windows, files, and folders.
62-
* Leave, for websites and webpages.
63-
* Go to, for a menu or a particular place in the UI, like search, a ribbon, or a tab.
64-
* Select, for UI options, values, links, and menu items.
65-
* Select and hold, for pressing and holding an element in the UI for about a second.
66-
* Clear, for removing the selection from a checkbox.
67-
* Choose, for an exclusive option in a control where only one value can be chosen.
68-
* Enter, for instructing the reader to type or otherwise enter a value.
69-
* Specify, for instructing a reader to type or select a value, such as in a combo box (in content for technical audiences only).
70-
* Move, for moving something from one place to another by dragging, pasting, or another method.
71-
* Zoom, zoom in, zoom out, for changing the magnification of a screen or window.
72-
* Avoid press, press and hold, and right-click if you can. Try to use an input-neutral verb instead.
73-
74-
## Punctuation
75-
76-
* Stick to short, simple sentences. Sentences that contain lots of punctuation tend to be complex and hard to read.
77-
* End all sentences with a period, even if they're only two words.
78-
* Use only one space after periods, question marks, exclamation marks, and colons.
79-
* Include a colon at the end of a phrase that directly introduces a list.
80-
* If one or more list elements complete the introductory phrase preceding the colon, use a period after every list element.
81-
* If all list elements are short phrases (three words or fewer), don’t end them with periods, even if they form a complete sentence together with the list introduction.
82-
* If one or more list elements are complete sentences, use a period after every element, even if a list element contains three or fewer words.
83-
* Include commas after every item in a series, including the last one.
84-
85-
* Use a comma following an introductory phrase, to join independent clauses with a conjunction, and to surround the year when you use a complete date within a sentence.
86-
87-
* Use an apostrophe to indicate a missing letter in a contraction (such as don’t) and to form the possessive case of a noun (as in Insider’s Guide). Don’t use an apostrophe for the possessive of it (its) to avoid confusion with the contraction it’s.
88-
89-
* When you use a colon in a sentence, lowercase the word that follows it unless it's a proper noun or the first word of a quotation.
90-
91-
* A sentence that contains a semicolon might be complex. Try to rewrite the sentence as multiple sentences or break it into a list.
92-
93-
* Use exclamation points sparingly. Save them for when they count.
94-
95-
* Use question marks sparingly. Customers expect us to give them answers.
96-
97-
* Place closing quotation marks outside commas and periods, inside other punctuation. Exception if punctuation is part of the quoted material, place it inside the quotation marks.
98-
99-
* In general, don’t use hyphens unless leaving them out could result in confusion.
100-
101-
* Don’t use spaces around em dashes (—).
102-
103-
* Don’t use a slash (/) to indicate a choice or as a substitute for or.
104-
105-
## Text formatting
106-
107-
* UI elements, like menu items, dialog names, and names of text boxes, should be in bold text.
108-
* Use bold text for Git repo or branch names when selected or entered in instructions.
109-
* Use italic text to introduce a new term along with a definition or explanation. Italicize the new term the first time you use it, and then use regular text for the definition or explanation.
110-
* Use code style for:
111-
* Code elements, like method names, property names, and language keywords.
112-
* SQL commands.
113-
* NuGet package names.
114-
* Command-line commands.
115-
* Database table and column names.
116-
* Resource names (like virtual machine names) that shouldn't be localized.
117-
* URLs that you don't want to be selectable.
118-
* In paragraph text or procedural steps, use italic for placeholder text that users substitute with their own information.
119-
* For code placeholders, if you want users to replace part of an input string with their own values, use angle brackets (less than < and greater than > characters) on that placeholder text.
120-
* Don't apply an inline style like italic, bold, or inline code style to headings.
121-
* Don't apply inline style like italic or bold to link text. But when the link text contains a programming element, like a function or operator, enclose the link text in backticks.
122-
123-
## Alerts
124-
125-
* Alerts are a Markdown extension to create block quotes that render with colors and icons that indicate the significance of the content. The following alert types are supported:
126-
127-
* `[!NOTE]` Information the user should notice even if skimming.
128-
* `[!TIP]` Optional information to help a user be more successful.
129-
* `[!IMPORTANT]` Essential information required for user success.
130-
* `[!CAUTION]` Negative potential consequences of an action.
131-
* `[!WARNING]` Dangerous certain consequences of an action.
132-
133-
## Links
134-
135-
* Links to other documentation articles should be relative, not absolute. Start relative links with `/docs/` and include the `.md` suffix.
136-
* Links in release notes should be full URLs, not relative. Use the `https://code.visualstudio.com/docs/` domain.
137-
* Links to bookmarks within the same article should be relative and start with `#`.
138-
* Link descriptions should be descriptive and make sense on their own. Don't use "click here" or "this link" or "here".
3+
Follow the [documentation writing guidelines](../instructions/docs-writing.instructions.md) when reviewing or writing documentation.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
applyTo: '**/*.md'
3+
---
4+
# Documentation Writing Instructions
5+
6+
These are our documentation writing style guidelines.
7+
8+
## General Style tips
9+
10+
* Get to the point fast.
11+
* Talk like a person.
12+
* Simpler is better.
13+
* Be brief. Give customers just enough information to make decisions confidently. Prune every excess word.
14+
15+
## Grammar
16+
17+
* Use present tense verbs (is, open) instead of past tense (was, opened).
18+
* Write factual statements and direct commands. Avoid hypotheticals.
19+
* Use active voice where the subject performs the action.
20+
* Write in second person (you) to speak directly to readers.
21+
* Use gender-neutral language.
22+
* Avoid multiple -ing words that can create ambiguity.
23+
* Keep prepositional phrases simple and clear.
24+
* Place modifiers close to what they modify.
25+
26+
## Capitalization
27+
28+
* Use sentence-style capitalization for everything except proper nouns.
29+
* Always capitalize proper nouns.
30+
* Don’t capitalize the spelled-out form of an acronym unless it's a proper noun.
31+
* Use title-style capitalization for product and service names.
32+
* In programming languages, follow the traditional capitalization of keywords and other special terms.
33+
* Don't use all uppercase for emphasis.
34+
35+
## Numbers
36+
37+
* Spell out numbers for zero through nine, unless space is limited. Use numerals for 10 and above.
38+
* Spell out numbers at the beginning of a sentence.
39+
* Spell out ordinal numbers such as first, second, and third. Don't add -ly to form adverbs from ordinal numbers.
40+
41+
## Punctuation
42+
43+
* Use short, simple sentences.
44+
* End all sentences with a period.
45+
* Use one space after punctuation marks.
46+
* After a colon, capitalize only proper nouns.
47+
* Avoid semicolons - use separate sentences instead.
48+
* Use question marks sparingly.
49+
* Don't use slashes (/) - use "or" instead.
50+
51+
## Text formatting
52+
53+
* UI elements, like menu items, dialog names, and names of text boxes, should be in bold text.
54+
* Use code style for:
55+
* Code elements, like method names, property names, and language keywords.
56+
* SQL commands.
57+
* NuGet package names.
58+
* Command-line commands.
59+
* Database table and column names.
60+
* Resource names (like virtual machine names) that shouldn't be localized.
61+
* URLs that you don't want to be selectable.
62+
* For code placeholders, if you want users to replace part of an input string with their own values, use angle brackets (less than < and greater than > characters) on that placeholder text.
63+
* Don't apply an inline style like italic, bold, or inline code style to headings.
64+
65+
## Alerts
66+
67+
* Alerts are a Markdown extension to create block quotes that render with colors and icons that indicate the significance of the content. The following alert types are supported:
68+
69+
* `[!NOTE]` Information the user should notice even if skimming.
70+
* `[!TIP]` Optional information to help a user be more successful.
71+
* `[!IMPORTANT]` Essential information required for user success.
72+
* `[!CAUTION]` Negative potential consequences of an action.
73+
* `[!WARNING]` Dangerous certain consequences of an action.
74+
75+
## Links
76+
77+
* Links to other documentation articles should be relative, not absolute. Start relative links with `/docs/` and include the `.md` suffix.
78+
* Links in release notes should be full URLs, not relative. Use the `https://code.visualstudio.com/docs/` domain.
79+
* Links to bookmarks within the same article should be relative and start with `#`.
80+
* Link descriptions should be descriptive and make sense on their own. Don't use "click here" or "this link" or "here".
81+
82+
## Images
83+
84+
* Use images only when they add value.
85+
* Images have a descriptive and meaningful alt text that starts with "Screenshot showing" and ends with ".".
86+
* Videos have a descriptive and meaningful alt text or title that starts with "Video showing" and ends with ".".
87+
88+
## Numbered steps
89+
90+
* Write complete sentences with capitalization and periods
91+
* Use imperative verbs
92+
* Clearly indicate where actions take place (UI location)
93+
* For single steps, use a bullet instead of a number
94+
* When allowed, use angle brackets for menu sequences (File > Open)
95+
96+
## Terminology
97+
98+
* Use "Select" instead of "Click" for UI elements like buttons, menu items, links, dropdowns, and checkboxes.
99+
* Follow the terms and capitalization guidelines in #fetch [VS Code docs wiki](https://github.com/microsoft/vscode-docs/wiki/VS-Code-glossary)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
mode: agent
3+
tools: ['codebase', 'vscodeAPI', 'problems', 'fetch', 'search']
4+
description: You are a technical writer reviewing an article for clarity, conciseness, and adherence to the documentation writing style guidelines.
5+
---
6+
Review the article for clarity, conciseness, and adherence to our documentation [writing style guidelines](../instructions/docs-writing.instructions.md).
7+
8+
Provide concrete and practical suggestions for improvement.

0 commit comments

Comments
 (0)