Chapter 6: Setting up keyboard shortcuts
In this chapter, we'll cover the final area of the settings.json
: the actions
section. This section controls the keyboard shortcuts available in Windows Terminal.
Keyboard shortcuts are mandatory for any well-optimized workflow. In previous chapters, we covered the default keyboard shortcuts, and these will take us quite far. However, Windows Terminal really shines at setting up custom keyboard shortcuts to automate our own command-line tools and layouts.
In this chapter, we'll learn the details of Windows Terminal's keyboard configuration system, and how to set up our own keyboard shortcuts and commands. In addition, we'll explore commands for cycling through terminal window layouts at the press of a button.
We'll cover the following areas:
- Overview of the keyboard shortcut systems
- Building custom commands with "
sendInput
" - Configuring custom terminal layouts with "
wt
"
...