Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Summary

The .NET 10 CLI uses dotnet completions script [SHELL] but documentation incorrectly showed dotnet completions generate [SHELL].

Changed command syntax in:

  • docs/core/tools/enable-tab-autocomplete.md - Updated 7 instances across all shell examples (PowerShell, Bash, Zsh, Fish, Nushell)
  • docs/core/whats-new/dotnet-10/sdk.md - Updated command reference and standardized PowerShell casing (Out-String)

Before:

dotnet completions generate [SHELL]

After:

dotnet completions script [SHELL]

Fixes #Issue_Number (if available)

Original prompt

This section details on the original issue you should resolve

<issue_title>.NET 10 CLI auto completion "generate" argument incorrect</issue_title>
<issue_description>### Type of issue

Typo

Description

The .NET 10 CLI capability to generate the auto completion script uses an example that shows dotnet completions generate [SHELL] when it apparently is dotnet completions script [SHELL] in the shipping product.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/tools/enable-tab-autocomplete

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/tools/enable-tab-autocomplete.md

Document Version Independent Id

f30f63dc-0d90-7dba-ef39-b0148c637c1a

Platform Id

d808fba8-f906-9fc9-f8fd-8fe8bca5bdf8

Article author

@adegeo

Metadata

  • ID: 341f0255-aa31-8e76-9b17-1232b7a910a9
  • PlatformId: d808fba8-f906-9fc9-f8fd-8fe8bca5bdf8
  • Service: dotnet-fundamentals

Related Issues</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/enable-tab-autocomplete.md docs/core/tools/enable-tab-autocomplete
docs/core/whats-new/dotnet-10/sdk.md docs/core/whats-new/dotnet-10/sdk

Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect argument in .NET 10 CLI auto completion Fix .NET 10 CLI auto-completion command from 'generate' to 'script' Nov 19, 2025
Copilot AI requested a review from meaghanlewis November 19, 2025 17:56
Copilot finished work on behalf of meaghanlewis November 19, 2025 17:56
@meaghanlewis meaghanlewis marked this pull request as ready for review November 19, 2025 18:12
@meaghanlewis meaghanlewis requested a review from a team as a code owner November 19, 2025 18:12
Copilot AI review requested due to automatic review settings November 19, 2025 18:12
Copilot finished reviewing on behalf of meaghanlewis November 19, 2025 18:14
Copy link
Contributor

Copilot AI left a 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 corrects the .NET 10 CLI auto-completion command syntax from dotnet completions generate [SHELL] to dotnet completions script [SHELL] to match the shipping product. The changes ensure consistency across documentation and standardize PowerShell cmdlet casing.

  • Updated command syntax from generate to script across all documentation
  • Standardized PowerShell cmdlet casing to Out-String (proper PascalCase)
  • Removed unnecessary -ErrorAction SilentlyContinue parameter for consistency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/core/tools/enable-tab-autocomplete.md Updated 7 command examples across all shell types (PowerShell, Bash, Zsh, Fish, Nushell) to use correct script subcommand
docs/core/whats-new/dotnet-10/sdk.md Updated command reference and PowerShell example, standardized Out-String casing

Copilot AI requested a review from meaghanlewis November 19, 2025 18:23
Copilot finished work on behalf of meaghanlewis November 19, 2025 18:23
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Let's :shipit:

@meaghanlewis meaghanlewis merged commit c4a7191 into main Nov 20, 2025
29 checks passed
@meaghanlewis meaghanlewis deleted the copilot/fix-dotnet-cli-auto-completion branch November 20, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET 10 CLI auto completion "generate" argument incorrect

3 participants