Enable PSReadline support in the integrated console (syntax highlighting, keyboard navigation)
PSReadline is not supported in the integrated console at this time. A non-trivial amount of work is needed to make PowerShell Editor Services and PSReadline play nicely together so this could take some time.
Features this will enable:
- Ctrl+Arrow keys, etc (keyboard navigation of the input line)
- Syntax highlighting of input text
- Multi-line text input (writing a function definition in the console across multiple lines)
Still. Waiting.
@Jaykul you can use it in the powershell preview module that was published, unless you're waiting on something else?
@JustinGrote The preview module doesn't show up as an available module on code-insiders, fwiw.
@rfoust it should. They both pull from the same marketplace.
Search for "PowerShell" and look down the list. I remember seeing it about half way down the page.
Oh you're right, there it is. Not sure why I didn't see it last night. :)
Closing as PSReadLine is now available in the PowerShell Preview extension, tracking that PSReadLine is not available in the main PowerShell Extension here #1793
After updating to the non-preview powershell extension v 2020.1.0 and vscode 1.42.1, I have lost syntax highlighting in the integrated console. The actual code editor is working fine. Any ideas?
@iampeterdaniels non-preview extension doesn't have PSReadline, you have to use the preview extension for psreadline functionality (which includes syntax highlighting, special characters, etc.)
Thank you, Justin. Not sure why I thought the PSReadline 2.0 release somehow translated into it being in the non-preview extension.
@iampeterdaniels the current preview extension should roll into stable very soon, they're trying to target it for the PS7 release which will probably drop sometime this week or next.
For some reason, my Ctrl + Backspace still does not work in VS Code with Powershell integrated terminal.
Tried both Powershell V5 and V7.
Any fix on that?
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead.
Is running multiple selected lines in the same commandline command supported now? I'm trying to find where the discussion from https://github.com/microsoft/vscode/issues/9715 and https://github.com/PowerShell/vscode-powershell/issues/1607#issuecomment-441698036 continues and can't find it. Is there a dedicated issue ticket covering it?