Skip to content

"Ctrl + Space" produces "a" character when used on some prompts in PowerShell terminal #271163

@jtomkiew-mng

Description

@jtomkiew-mng

Type: Bug

In PowerShell terminal using Ctrl + Space on certain prompts produces an "a" character when other system PowerShell terminals (native 5.1, native 7.4 or Windows Terminal) produce no output or a space.

Steps to reproduce

  1. Open PowerShell 7 (pwsh) terminal
  2. Type i
  3. Press Ctrl + Space keys -> after a short discovery, this will show Display all xxx possibilities? (y or n) prompt, this is good so far

    If you are not prompted in this setup, type * instead of i in step 2.

  4. Press Ctrl + Space keys again -> character a is inserted for unknown reason ☹️

Alternative steps to reproduce

  1. Open PowerShell 7 (pwsh) terminal
  2. Type Get-Credential, press Enter -> you will be prompted to username, this is good so far
  3. Use Ctrl + Space shortcut -> character a is inserted for unknown reason ☹️

    Note: native terminal in this case inserts a space character, ignoring the Ctrl modifier.

$PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.4.11
PSEdition                      Core
GitCommitId                    7.4.11
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
$Host
Name             : ConsoleHost
Version          : 7.4.11
InstanceId       : 0eb31dd4-a06f-4ff5-ae95-b0d40a8c4b95
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-GB
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

VS Code version: Code 1.105.0 (03c265b, 2025-10-08T14:09:35.891Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-1240P (16 x 2112)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.70GB (12.28GB free)
Process Argv --crash-reporter-id 5499e44f-8549-4bef-83c1-b92de90273d2
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
usemplatestapi:31297334
aj953862:31281341
4f60g487:31327383
nes-set-on:31351930
6abeh943:31336334
ovs_pri_t:31398872
0cj2b977:31352657
gendocstringt:31395207
0574c672:31362109
cloudbuttont:31379625
todos-1:31390405
qwen_all_req:31398802
treatment_gpt5applypatchexclusively:31398171
3efgi100_wstrepl:31382709
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
applesignin:31399435
dcggh915:31400023
6j29d282:31401256

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codeterminal-inputRelating to typing in the terminal not doing the right thing, IMEs not working, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions