Reputation: 14269
VSCode's PowerShell Terminal now offers a kind of suggestion in gray of what you might be wanting to type (presumably from the history?):
But there seems to be no way to actually accept the suggestion: pressing tab just does the normal PowerShell autocomplete (usually of a cmdlet or path).
What is this feature and how can I "tab" to autocomplete the command tantalisingly shown?
UPDATE: Just pressing right arrow
on the keyboard does the autocompletion.
Upvotes: 30
Views: 10754
Reputation: 343
For me both, RIGHT→
or SHIFT+RIGHT→
, works. I am using VS Code v1.86.0 in WIN11 machine.
Upvotes: 3
Reputation: 95
For me, using simply RightArrow
already works if my cursor is at the end of the segment I typed.
Upvotes: 6
Reputation: 487
The key combination SHIFT + RIGHTARROW
should do the trick. I hope this helps!
Upvotes: 20
Reputation: 476
For me it was Shift + RightArrow
.
If you have EditMode VI enabled, then make sure to define whatever key combination you would like to use for this to SelectForwardChar
. To set SelectForwardChar
to Shift + RightArrow
insert the following line of code into your VSCode PowerShell Profile:
Set-PSReadLineKeyHandler -Key Shift+RightArrow -Function SelectForwardChar
Upvotes: 46