Skip to content

Commit cf63877

Browse files
authored
Update parse-strings-using-split.md
1 parent 5ce0bb4 commit cf63877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/csharp/how-to/parse-strings-using-split.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Consecutive instances of any separator produce the empty string in the output ar
4747

4848
:::code language="csharp" interactive="try-dotnet-method" source="../../../samples/snippets/csharp/how-to/strings/ParseStringsUsingSplit.cs" id="Snippet5":::
4949

50-
## Use GitHub Copilot to split a string using String.Split in C\#
50+
## Use GitHub Copilot to split a string
5151

5252
You can use GitHub Copilot in your IDE to generate code to split strings using `String.Split` in C#.
5353

@@ -62,7 +62,7 @@ The following text shows an example prompt for Copilot Chat:
6262
6363
You can customize the prompt to use strings and delimiters per your requirements.
6464

65-
You can use chat features, such as [slash commands, references to files, methods, or classes, and threads](/visualstudio/ide/copilot-chat-context), to set intent and get better answers with scoped context. For an existing class in a project that's open in the IDE, you can prompt GitHub Copilot with `/generate code to convert the string "123" to a number`.
65+
You can use chat features, such as [slash commands, references to files, methods, or classes, and threads](/visualstudio/ide/copilot-chat-context), to set intent and get better answers with scoped context. For an existing file open in the IDE, you can prompt GitHub Copilot using the `/generate` slash command as follows: `/generate code to split string1 in #Filename by delimiter spaces`.
6666

6767
The following output shows an example Copilot Chat response:
6868

0 commit comments

Comments
 (0)