You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/enable-tab-autocomplete.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
2
title: Enable tab completion
3
-
description: This article teaches you how to enable tab completion for the .NET CLI for PowerShell, Bash, zsh, fish, and nushell.
3
+
description: This article teaches you how to enable tab completion for the .NET CLI for PowerShell (pwsh), Bash, zsh, fish, and nushell.
4
4
author: adegeo
5
5
ms.author: adegeo
6
6
ms.topic: how-to
7
-
ms.date: 01/14/2025
7
+
ms.date: 11/14/2025
8
8
ai-usage: ai-assisted
9
9
---
10
10
11
11
# How to enable tab completion for the .NET CLI
12
12
13
-
**This article applies to:** ✔️ .NET Core 2.1 SDK and later versions
13
+
**This article applies to:** ✔️ .NET 6 SDK and later versions
14
14
15
-
This article describes how to configure tab completion for five shells: PowerShell, Bash, zsh, fish, and nushell. For other shells, refer to their documentation on how to configure tab completion.
15
+
This article describes how to configure tab completion for five shells: PowerShell (pwsh), Bash, zsh, fish, and nushell. For other shells, refer to their documentation on how to configure tab completion.
16
16
17
17
## Native shell completion scripts (.NET 10+)
18
18
19
-
Starting with .NET 10 Preview 3, the .NET CLI includes native shell completion scripts that are much faster than the dynamic completions available in earlier versions. Native completions generate shell-specific scripts that handle the static parts of the CLI grammar directly in the shell, providing a significant performance improvement.
19
+
Starting with .NET 10, the .NET CLI includes native shell completion scripts that are much faster than the dynamic completions available in earlier versions. Native completions generate shell-specific scripts that handle the static parts of the CLI grammar directly in the shell, providing a significant performance improvement.
20
20
21
21
### Generate completion scripts
22
22
@@ -34,7 +34,7 @@ The `[SHELL]` parameter accepts one of the following values:
34
34
-`pwsh`
35
35
-`zsh`
36
36
37
-
If you don't specify a shell, the command infers the correct shell from your environment. On Windows, it defaults to PowerShell (`pwsh`). On other systems, it checks the `SHELL` environment variable.
37
+
If you don't specify a shell, the command infers the correct shell from your environment. On Windows, it defaults to PowerShell (`pwsh`). On other systems, it checks if the file name of the `SHELL` environment variable matches any of the previously specified shell values.
0 commit comments