Is there a shortcut to hide the side bar in Visual Studio Code? October 1, 2022 by Tarik The command can be triggered via Ctrl+B on Windows and Linux or Cmd+B on the Mac.