PowerShell / PowerShell/vscode-powershell

Please allow me to change the terminal theme/colors programmatically

Offen
#4,075 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Issue-Enhancement
Vorherrschende Sprache
TypeScript
Sterne
1.9k
Forks
548
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

In der Issue wird keine Datei und kein Test genannt. Beginne damit, die bestehende $PsEditor-Integration und die Interaktion der Erweiterung mit VS Code-Einstellungen oder Themes zu lokalisieren; abgeschlossen ist die Aufgabe, wenn ein programmgesteuerter Pfad zum Festlegen des Themes unabhängig für Azure TiP-, Tshell- und Windows-Build-Sitzungen funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
powershell, typescript, vscode
Bereich
developer-experience, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.