- Hover over the connection name in the status bar and click Settings (or run Code for IBM i: Show Additional Settings from the command palette).
- Open the Features tab.
- Set Status bar color with the color picker, at the bottom of the tab.
- Save.
When you work with several systems at once - development, test, production - it is very easy to run an Action or a SQL statement on the wrong one. The Status bar color setting paints the Code for IBM i status bar items with a color of your choice, so the current environment is recognizable at a glance.
The color is stored per connection, and it can also be stored per profile, so that switching environments also switches the color.
The color is a foreground color: it colors the text and the icons of the status bar items, not their background. Background states set by the extensions (for example the orange “pending transaction” warning of Db2 for IBM i) are not affected.

| Extension | Status bar item |
|---|---|
| Code for IBM i (core) | The connected system item ($(settings-gear) SYSTEM (profile)) |
| Code for IBM i (core) | The Disconnect from system item |
| Code for IBM i (core) | The source dates search item (shown when Enable source dates is on) |
| Db2 for IBM i | The SQL Job Manager item ($(database) job name) |
| IBM i FileSystem | The FS Quick Start item |
#rgb or #rrggbb hexadecimal values (for example #f00 or #ff0000).#000000) means “no color”: the items keep the color of the current VS Code theme. This is the default, and it is also what the color picker shows when no color has been chosen yet.
The change is applied immediately: all the status bar items listed above refresh as soon as the connection settings are saved - no reconnection needed.
This value belongs to the connection, so it is used every time you connect to that system, whatever profile is active - unless the profile carries its own color (see below).
Each profile can carry its own color, so activating a profile also changes the status bar color. This is handy when a single connection is used for several environments (different library lists, different iASPs).
Unlike most of the other profile fields, Status bar color stays editable even when the profile you are editing is the active one; saving it updates the connection’s color right away.
Hovering over a profile in the Environment view shows its color in the tooltip, along with the other profile settings.
Hovering over a profile in the Environment view shows its color in the tooltip, along with the other profile settings.
FS Quick Start item also re-evaluates its color periodically, so it may take a couple of seconds to follow.