dotnet / dotnet/command-line-api
Renamed: PowerShell Tab completion issues (you need to restart commandline to see refreshed dotnet suggest list)
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
I did follow steps for [dotnet-suggest](https://github.com/dotnet/command-line-api/wiki/dotnet-suggest):
- executed: dotnet tool install -g dotnet-suggest
- I see dotnet-suggest installed in $env:USERPROFILE\.dotnet\tools
- added shell script to my PowerShell profile
- when I start PowerShell I see that $env:DOTNET_SUGGEST_SCRIPT_VERSION has value 1.0.0
I am trying to get Tab completion to work but I never see any suggestion. Are they any other requirements? I have a
I build .NET Core 3.1 console application called Test using "System.CommandLine" version "2.0.0-beta1.20071.2" (configured options are --int-option, --bool-option and --file-option). When I press Tab in the following PowerShell command line nothing happens:
`PS> Test.exe --int`
When I press Tab in the following PowerShell command line I just see standard PowerShell completion (files from the same directory):
`PS> Test.exe `
I am sure there is something obvious that I missing. Could you please point in the right direction to get the tab completion/suggestion to work for my CommandLine console tools?
Contributor guide
Assessment
This issue has not been assessed yet.