First grab the extension: VSCode PowerShell
Pwsh> Install-Module -Scope CurrentUser -AllowPrerelease EditorServicesCommandSuite
Import-CommandSuite
{
"key": "ctrl+.",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": { "commandName": "Invoke-DocumentRefactor" },
"when": "editorLangId == 'powershell'"
},
{
"key": "ctrl+shift+s",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": { "commandName": "ConvertTo-SplatExpression" },
"when": "editorLangId == 'powershell'"
},
{
"key": "alt+shift+m",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": {
"commandName": "ExpandMemberExpression"
},
"when": "editorLangId == 'powershell'"
},
{
"key": "alt+shift+n",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": {
"commandName": "AddResolvedNamespace"
},
"when": "editorLangId == 'powershell'"
}, {
"key": "ctrl+shift+down",
"command": "PowerShell.Debug.Start"
},
{
"key": "ctrl+w",
"command": "-workbench.action.terminal.killEditor", //Terminal: Kill the Active Terminal in Editor Area
},
{
"key": "ctrl+k ctrl+r",
"command": "-workbench.action.keybindingsReference"
},