toggle fullscreen terminal in vscode

in keybindings.json

[
    ...
  {
    "key": "ctrl+m",
    "command": "workbench.action.toggleMaximizedPanel",
    "when": "!terminalFocus"
  },
  {
    "key": "ctrl+M",
    "command": "workbench.action.closePanel",
    "when": "terminalFocus"
  }
]