Go to Settings → Hotkeys and set keyboard shortcut for Toggle right side bar. You can collapse and reveal it using the same keyboard shortcut.