Skip to content

Feature Request: Coloring the integrated console #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Glober777 opened this issue Mar 21, 2017 · 15 comments
Closed

Feature Request: Coloring the integrated console #594

Glober777 opened this issue Mar 21, 2017 · 15 comments

Comments

@Glober777
Copy link

Hi,

I was wondering if it's possible to have the colors within integrated console match the colors of the default PowerShell console (like in ISE)?

Thanks,
Ivan

@daviwil
Copy link
Contributor

daviwil commented Mar 21, 2017

Hey Ivan, which colors are you referring to? Write-Verbose/Warning/Debug, etc? Or the colors for command input like what PSReadLine does?

@dotps1
Copy link

dotps1 commented Mar 21, 2017

I would prefer PSReadLine. Is there any working on making that happen? The PSReadLine integration that is.

@daviwil
Copy link
Contributor

daviwil commented Mar 21, 2017

I'm waiting on some changes to be merged to PSReadline first, then I'll be able to start on that.

@Glober777
Copy link
Author

@daviwil, I was thinking more of the background color of the whole console, as well as foreground and background colors for the Verbose, Debug, Error messages. I'm aware that PSReadline is a bit challenging at the moment and that some time would be needed, but having the console looking differently from the rest of the VSCode (and more like a standalone one) would make it look and feel more integrated.

@rkeithhill
Copy link
Contributor

@Glober777 IMO the right place to make this customization is in the Microsoft.VSCode_profile.ps1 profile script. You can get kind of close to what I "think" you want by editing your C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1 file. This is easily done in the Integrated Console by executing psedit $profile. Then add this to your profile:

$host.UI.RawUI.BackgroundColor = 'DarkBlue'
Clear-Host

When you first start the IC it won't show the desired background color e.g.:
image

But as you use it, the background will start to paint with the desired color. Well, except for the prompt background. I think that is probably a bug with the IC. @daviwil ?
image

@joeyaiello
Copy link

Just wanted to give my +1 on the fact that the prompt is a different color (black) than the rest of the console on Linux (specifically CentOS 7). Let me know if you need any more info.

@daviwil
Copy link
Contributor

daviwil commented Mar 28, 2017

What if you run PowerShell directly in the terminal UI, same result?

@joeyaiello
Copy link

Nope, if I execute powershell straight out of a VSCode /bin/bash terminal, it looks fine.

@daviwil
Copy link
Contributor

daviwil commented Mar 30, 2017

Thanks for confirming! I'll track that down.

@AspenForester
Copy link
Contributor

Is this in the same realm as $host.PrivateData.ErrorForegroundColor?
For a standard PS Console, I like to set $host.PrivateData.ErrorForegroundColor = [System.ConsoleColor]::Green

I've added "workbench.colorCustomizations":{"errorForeground":"#008000"} to settings.json, but that doesn't seem to apply to the integrated console, which continues to display errors in red.

@ghost
Copy link

ghost commented Aug 9, 2017

Match VSCode Powershell Integrated Console functionality with ISE-hosted command window ( syntax coloring and intellisense capabilities)

@daviwil
Copy link
Contributor

daviwil commented Aug 14, 2017

@AspenForester that would be covered by issue #571

@jmarkert
Copy link

define the terminal red to be green helps
"workbench.colorCustomizations":{"terminal.ansiBrightRed": "#008000"}

@Glober777
Copy link
Author

PowerShell ISE Theme pretty much nails this and I'm ok with closing this issue

@PramodKumarYadav
Copy link

PowerShell ISE Theme pretty much nails this and I'm ok with closing this issue

I was also looking for a better solution for this.

As mentioned by Glober777, you can find ISE theme here under View-> Command Palette -> Preferences:Color Theme -> Powershell ISE

This fixed the issue for me.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Nov 6, 2019
@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants