Skip to content

Commit f37b463

Browse files
Merge pull request #5149 from MicrosoftDocs/alvinashcraft/main-copilot-tips-updates
Update Copilot tips in PowerToys and MySql
2 parents ab5b145 + c41da2f commit f37b463

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hub/apps/develop/data-access/mysql-database.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ms.localizationpriority: medium
1414

1515
This article contains the steps required to enable working with a MySQL database from a Windows app. It also contains a small code snippet showing how you can interact with the database in code.
1616

17+
> [!TIP]
18+
> You can use AI assistance to [create a MySQL connection string with GitHub Copilot](#building-a-connection-string-with-github-copilot).
19+
1720
## Set up your solution
1821

1922
This example can be used with any WPF, Windows Forms, WinUI 3, and UWP project to connect your Windows app to a MySQL database. Follow these steps to install the package and try out the example code to read data from an existing MySQL database.

hub/powertoys/powerrename.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ PowerRename is a bulk renaming tool that enables you to:
2020
- Check the expected rename results in a preview window before finalizing a bulk rename.
2121
- Undo a rename operation after it is completed.
2222

23+
> [!TIP]
24+
> You can use AI assistance to [create regular expressions to use in PowerRename with GitHub Copilot](#ask-microsoft-copilot-for-help-with-regular-expressions).
25+
2326
## Demo
2427

2528
In this demo, all instances of the file name "foo" are replaced with "foobar". Since all the files are uniquely named, this would have taken a long time to complete manually one-by-one. PowerRename enables a single bulk rename. Notice that the Explorer's "Undo Rename" (Ctrl+Z) command makes it possible to undo the last change.
@@ -217,12 +220,6 @@ The following text shows an example prompt for Copilot:
217220
Generate a regular expression to match a string that starts with "foo" and ends with "bar" and has at least six letters and two numeric characters in between them.
218221
```
219222

220-
Copilot will generate a regular expression similar to the following:
221-
222-
```
223-
^foo(?=[A-Za-z0-9]{8,}bar$)(?=(.*\d){2})[A-Za-z0-9]*bar$
224-
```
225-
226223
Copilot is powered by AI, so surprises and mistakes are possible. For more information, see [Copilot FAQs](https://www.microsoft.com/microsoft-copilot/learn/).
227224

228225
### Additional resources for learning regular expressions

0 commit comments

Comments
 (0)