question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable console cursor movement and selection like the ISE

See original GitHub issue

Feature request…

System Details

  • Operating system name and version: Windows Server 2016 Version 10.0.14393
code -v
1.12.2
19222cdc84ce72202478ba1cec5cb557b71163de

$pseditor.EditorServicesVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
1      2      1      0

code --list-extensions --show-versions
DotJoshJohnson.xml@1.8.0
ms-mssql.mssql@1.0.0
ms-vscode.PowerShell@1.2.1

$PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.14393.1198
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.1198}
BuildVersion                   10.0.14393.1198
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

It would be great if you could enable cursor movement and text selection in the integrated console like the PowerShell ISE allows. PSReadLine support will be great but this would go a bit further by enabling:

  • Left clicking with the mouse on the command line to move the console’s cursor to that location
  • Selecting a range of text (ideally, including multiple lines) with the mouse then deleting that text via the delete key, starting to type, or pasting something in (paste via keyboard or mouse).
  • Keyboard-based text selection across multiple lines (e.g. Shift+Arrow keys).

I realize you’re intentionally using the standard PowerShell host instead of something like the ISE and this may require upstream changes. I’m happy to submit this feature request in a more appropriate location. This goes to providing the “best possible experience to the PowerShell community through Visual Studio Code”.

Thanks for the great work - I’m excited about where this is going.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
dragonwolf83commented, Mar 14, 2018

You can now Alt+Click to move the cursor on the command line with the mouse. This was just added in Visual Studio Code v1.21.

0reactions
SydneyhSmithcommented, Mar 27, 2019

Closing this as PSReadLine is now available in the PowerShell preview extension #1793

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use the Console Pane in the Windows PowerShell ISE
Paste the selected text at a current cursor position. Click the Paste icon on the toolbar. Clear all the text in the Console...
Read more >
Cisco ISE Command-Line Interface - Cisco Content Hub
On VT100-type and ANSI devices, you can use cursor-control and cursor-movement keys including the left arrow, right arrow, up arrow, down arrow, Delete,...
Read more >
Gamepad Cursor with Input System - Unity Tutorial - YouTube
Make a custom gamepad cursor using Unity's New Input System. This way you can navigate UI using a controller similar to a mouse....
Read more >
how can we put the cursor at mouse pointer
I assume you're using Vim in a terminal? The way the mouse works in a terminal is kinda weird: by default, it's the...
Read more >
How to move mouse pointer to a specific position using ...
Since we cannot make actual mouse pointer using JavaScript, we use an image as a cursor. Suppose variables x, y, px, py, x1,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found