PowerShell / PowerShell/vscode-powershell

Please allow me to change the terminal theme/colors programmatically

Open
#4,075 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

I would like to change the theme/colors of vscode (or at least the powershell terminal window) programmatically. Is there some code.cmd command line option for this? Or maybe something could be added to the $PsEditor that lets me set the vscode theme?

I am able to do this with the powershell_ise, but can't get parity when migrating to the code plugin. The reason I need this is because I have several entirely different powershell uses/environments that need to be open at once. Azure TiP vs Tshell vs Windows build window, etc. If I can't set a color scheme per-window then I confuse myself.

The only workaround I have so far is even more copies of the portable vscode install, each with their own settings. Is there a better way?

Proposed Design

Add some function to the $PsEditor that lets me set the vscode theme (by string name?)

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

No file or test is named in the issue. Start by locating the existing $PsEditor integration and how the extension interacts with VS Code settings or themes; done means a programmatic theme-setting path works independently for Azure TiP, Tshell, and Windows build sessions.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.