How to use the command palette in Windows Terminal
Article
06/10/2022
The command palette lets you see which actions you can run inside Windows Terminal. More information on how actions are defined can be found on the Actions page.
Invoking the command palette
You can invoke the command palette by typing Ctrl+Shift+P. This can be customized by adding the commandPalette command to your key bindings.
If you'd like to enter a wt command into the command palette, you can do so by deleting the > character in the text box. This will run the wt command in the current window. More information on wt commands can be found on the Command line arguments page.
You can add a custom key binding for invoking the command palette in the command line mode directly.
You can optionally add an icon to a command defined in your settings.json that appears in the command palette. This can be done by adding the icon property to the action. Icons can be a path to an image, a symbol from Segoe MDL2 Assets, or any character, including emojis.
Nested commands let you group multiple commands under one item in the command palette. The example below groups the font resize commands under one command palette item called "Change font size...".
Iterable commands let you create multiple commands at the same time, generated from other objects defined in your settings. Currently, you can create iterable commands for your profiles and color schemes. At runtime, these commands will be expanded to one command for each of the objects of the given type.
You can currently iterate over the following properties:
It's also possible to combine nested and iterable commands. For example, you can combine the three "new tab" commands above under a single "New tab" entry in the command palette, as shown in the image above, in the following way:
If you would like to keep a command in your key bindings list but not have it appear in the command palette, you can hide it by setting its name to null. The example below hides the "New tab" action from the command palette.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows Terminal
feedback
Windows Terminal
is an open source project. Select a link to provide feedback:
Power Apps model-driven apps implement a consistent user experience. A key component of that experience is how users are presented and can interact with available commands. As part of designing the model-driven app, a maker can customize the bars to add commands, hide commands and modify their behavior. This learning path introduces you to how to customize the command bar. We also cover common scenarios and advanced concepts.