-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Revise AI section example #50353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Revise AI section example #50353
Conversation
Updated the date and improved the AI tools section with a clearer example prompt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR revises the AI section in the C# string concatenation how-to guide. The changes update the metadata date and improve the AI tools section by providing a clearer, more structured example prompt with better formatting.
Key Changes
- Updated the
ms.datemetadata field to 12/05/2025 - Restructured the example Copilot Chat prompt to be more readable with multi-line formatting
- Split the AI disclaimer into separate sentences for improved clarity
| "Hello [name], today's date is [current date]. You have [count] new notifications." | ||
| Use variables for: name is "John", date is today's date, and notification count is 3. | ||
| Format the date as mm/dd/yyyy. | ||
| Show the output. |
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list items in lines 81-84 should end with periods since they are more than three words each. According to the style guidelines, list items with more than three words must end with periods.
BillWagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had one suggestion, and then this is ready to merge.
|
|
||
| ```copilot-prompt | ||
| Generate C# code to use String.Format to build an output string "Hi x, today's date is y. You are z years old." where x is "John", y is today's date and z is the birthdate January 1, 2000. The final string should show date in the full format mm/dd/yyyy. Show output. | ||
| Generate C# code to use String.Format to build an output string: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this task, I'd probably use string interpolation (e.g. $ and {} around arguments. That would produce cleaner code.
Updated the date and improved the AI tools section with a clearer example prompt.
Summary
Describe your changes here.
Fixes #Issue_Number (if available)
Internal previews