vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Enable PSReadline support in the integrated console (syntax highlighting, keyboard navigation)

Open daviwil opened this issue 9 years ago • 133 comments

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)

daviwil avatar Mar 14 '17 14:03 daviwil

Still. Waiting.

Jaykul avatar Mar 19 '19 00:03 Jaykul

@Jaykul you can use it in the powershell preview module that was published, unless you're waiting on something else?

JustinGrote avatar Mar 19 '19 18:03 JustinGrote

@JustinGrote The preview module doesn't show up as an available module on code-insiders, fwiw.

rfoust avatar Mar 21 '19 01:03 rfoust

@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.

TylerLeonhardt avatar Mar 21 '19 05:03 TylerLeonhardt

Oh you're right, there it is. Not sure why I didn't see it last night. :)

rfoust avatar Mar 21 '19 14:03 rfoust

Closing as PSReadLine is now available in the PowerShell Preview extension, tracking that PSReadLine is not available in the main PowerShell Extension here #1793

SydneyhSmith avatar Mar 27 '19 17:03 SydneyhSmith

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 avatar Feb 29 '20 00:02 iampeterdaniels

@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.)

JustinGrote avatar Feb 29 '20 02:02 JustinGrote

Thank you, Justin. Not sure why I thought the PSReadline 2.0 release somehow translated into it being in the non-preview extension.

iampeterdaniels avatar Feb 29 '20 02:02 iampeterdaniels

@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.

JustinGrote avatar Feb 29 '20 02:02 JustinGrote

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?

max-programming avatar Nov 11 '22 03:11 max-programming

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.

ghost avatar Nov 11 '22 03:11 ghost

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?

starball5 avatar Sep 21 '23 21:09 starball5