When clauses for keybindings Use when clauses to restrict when a given keyboard shortcut is enabled. For example, a keybinding with a when clause of "editorLangId == 'typescript'" would only be enabled in TypeScript files. More info