Skip to content

Commit

Permalink
Update Xcode source completion sample
Browse files Browse the repository at this point in the history
Swift prefers camelCase style for functions
  • Loading branch information
jaroshevskii authored Dec 19, 2024
1 parent f5e842e commit 4babbfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ This guide demonstrates how to get coding suggestions from {% data variables.pro
{% data variables.product.prodname_copilot %} offers coding suggestions as you type. For example, type this function
signature in a Swift file:

```shell copy
func CalculateDaysBetweenDates(
```swift copy

Check failure on line 448 in content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md

View workflow job for this annotation

GitHub Actions / lint-content

Fenced code blocks should have a language specified

"swift" is not allowed. When you add a fenced code block, you must specify the code language. Allowed languages are: bash, bicep, csharp, dockerfile, golang, graphql, groovy, html, http, java, javascript, json, jsonc, markdown, powershell, python, ruby, scss, shell, sql, text, typescript, xml, yaml. You can add allowed languages by updating data/code-languages.yml.
func calculateDaysBetweenDates(
```

{% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text. To accept the first line of a suggestion, press <kbd>Tab</kbd>. To view the full suggestion, hold <kbd>Option</kbd>, and to accept the full suggestion, press <kbd>Option</kbd>+<kbd>Tab</kbd>.
Expand Down

0 comments on commit 4babbfc

Please sign in to comment.