This commit is contained in:
Nick Trogh 2024-08-05 10:05:54 +02:00
Родитель ff96c67903
Коммит b73bd104ef
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -184,22 +184,23 @@ The following keybindings should work in PowerShell when shell integration is en
- `kbstyle(Shift+End)`: Defaults to `SelectLine` on all platforms
- `kbstyle(Shift+Home)`: Defaults to `SelectBackwardsLine` on all platforms
## Experimental intellisense for PowerShell
## Experimental IntelliSense for PowerShell
Experimental intellisense for PowerShell will show a completion list when typing in PowerShell, similar to the editor. Behind the scenes this is powered by the PowerShell session's native completion API, so context-aware completions like variables are available.
Experimental IntelliSense for PowerShell shows a completion list when typing in PowerShell, similar to the editor experience. Behind the scenes, this functionality is powered by the PowerShell session's native completion API, so context-aware completions like variables are available.
![PowerShell intellisense will show completions like Get-Alias, Get-ChildItem, etc. when typing Get-](images/shell-integration/pwsh-intellisense.png)
![PowerShell IntelliSense shows completions like Get-Alias, Get-ChildItem, for example when typing Get-](images/shell-integration/pwsh-IntelliSense.png)
This can be turned on with the following setting, currently only on Windows and macOS:
You can enable the experimental IntelliSense for PowerShell with the `terminal.integrated.suggest.enabled` setting.
```json
"terminal.integrated.suggest.enabled": true
```
> **Note**: This functionality is currently only available on Windows and macOS.
### Git and VS Code completions
When experimental intellisense is enabled, completions for CLIs `git`, `code` and `code-insiders` are turned on by default. If your PowerShell profile already has completions you may want to turn these off using the `terminal.integrated.suggest.builtinCompletions` setting.
When experimental IntelliSense is enabled, completions for CLIs `git`, `code`, and `code-insiders` are turned on by default. If your PowerShell profile already has completions, you may want to turn these off by using the `terminal.integrated.suggest.builtinCompletions` setting.
## Enhanced accessibility