PowerShell / PowerShell/vscode-powershell

Wish: Is there a way to show Variables when executing line (F5) or block (F8)

Open
#1,204 17 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-UI Issue-Enhancement
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Hi there
maybe I´m working different then any other or I´m working wrong, but thats the way im doing it.

Defining a variable is mostly one line. For example: ** $proc=(Get-WmiObject win32_processor).LoadPercentage**

After writing I mark the line and execute it via F5, so the variable is filled.
If I want to see how its filled I have to mark it and press again F5. It would be easyier to see it as its filled.

I hope I could clarify what I mean - or is somewhere already a setting I didn´t found yet.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how the VS Code PowerShell extension handles F5 and F8 execution, then identify how variable values are currently exposed after a line or block runs. The issue names no files or tests, so first locate the relevant command and debugging or output entry points. Done means the requested variable value is shown immediately after execution with behavior defined for both F5 and F8.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.