# Change console's Intellisense Colors

**URL:** <https://forums.powershell.org/t/change-consoles-intellisense-colors/9246>\
**Category:** PowerShell Help\
**Created:** [August 28, 2017, 9:59am UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246 "2017-08-28T09:59:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knotsure](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@knotsure](https://forums.powershell.org/u/knotsure)\
**Post date:** [August 28, 2017, 9:59am UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246/1 "2017-08-28T09:59:19Z")

</div>

Hello, I have been making basic scripts with Powershell for a while and have just started messing with a Powershell profile script. One thing I wanted was a teal-ish background, so I set the console’s background to “DarkCyan”.

```
$Host.UI.RawUI.BackgroundColor = "DarkCyan"
Clear-Host
```

Problem is this is the same color that Intellisense will change any string (any input wrapped in single or double quotes) to by default, making it invisible as I type.

Note: Output colors are fine, I just want to change the foreground color for inputs (interactive console).

In ISE, I can go to Tools \> Options and in the “Colors and Fonts” tab under Console Pane \> Console Tokens \> String, I can edit the color. This method only affects the ISE console and NOT\* the actual shell console. Is there a way to do this (preferably via script)?

- EDIT

I have checked the following for methods\properties that might work, but haven’t found anything:

```
$Host
$Host.UI
$Host.UI.RawUI
$Host.PrivateData
[console]::
```

Likewise, I have gone the GUI route within a shell console Right-click the top of window \> Properties, but I can’t find anything about Intellisense or strings.

I have searched this forum and the web in general, but haven’t found anything regarding to what I am specifically looking for.

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [August 28, 2017, 10:01am UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246/2 "2017-08-28T10:01:03Z")

</div>

The IntelliSense function is provided by the PSReadLine module; you should manage your color settings there (as in [How to set colors in PSReadLine in PowerShell - Super User](https://superuser.com/questions/676140/how-to-set-colors-in-psreadline-in-powershell)), rather than changing the colors in the console app itself. The console doesn’t “know” that PSReadLine is running, so it can’t mitigate any color problems.

---

<div class="post-metadata">

**Author:** ![nj-dude](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nj-dude](https://forums.powershell.org/u/nj-dude)\
**Post date:** [August 28, 2017, 11:19am UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246/3 "2017-08-28T11:19:55Z")

</div>

Correct me if I’m wrong, but PSReadLine requires PS 5+, right?

---

<div class="post-metadata">

**Author:** ![knotsure](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@knotsure](https://forums.powershell.org/u/knotsure)\
**Post date:** [August 28, 2017, 12:17pm UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246/4 "2017-08-28T12:17:21Z")

</div>

Thanks, Don. That is exactly what I was looking for.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:38pm UTC](https://forums.powershell.org/t/change-consoles-intellisense-colors/9246/5 "2024-05-16T20:38:21Z")

</div>

Closed on May 16, 2024, 8:38pm UTC


