You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询PyCharm Toggle Sidebar快捷键,官方文档未提及该内容

Toggle Sidebar Shortcuts in PyCharm

Hey there! I get it—sometimes those less obvious shortcuts slip through the official docs cracks. Let’s cover exactly how to toggle the sidebar in PyCharm, including defaults and how to set your own if needed.

Default Shortcuts (By Operating System)

First, the go-to shortcuts depend on which OS you’re using, and there’s a slight difference between toggling the main Project sidebar vs. the entire sidebar area:

  • Windows & Linux:
    • For the most commonly used Project Sidebar (the one with your file structure): Press Alt + 1—this toggles it on/off instantly.
    • To hide/show the entire sidebar region (including all panels like Structure, Database, etc.): The default setup might not have a dedicated shortcut for this, but you can access it via the menu bar: View > Appearance > Toggle Sidebar.
  • macOS:
    • For the Project Sidebar: Use Cmd + 1 to toggle it.
    • For the full sidebar region: Same menu path as above, or set a custom shortcut (see below).

How to Create a Custom Shortcut

If you want a dedicated key combo for the full Toggle Sidebar action (since the default might be missing), here’s how to set it up:

  1. Open PyCharm’s settings:
    • Windows/Linux: Hit Ctrl + Alt + S
    • macOS: Press Cmd + ,
  2. In the left menu, find and click Keymap
  3. Use the search bar at the top of the right pane to type Toggle Sidebar—the action will pop up immediately
  4. Right-click the action, select Add Keyboard Shortcut
  5. Press the key combination you want to use (e.g., Ctrl + Shift + B for Windows, Cmd + Shift + B for macOS), then click OK to save your new shortcut.

Pro Tip for Finding Any Shortcut

If you ever blank on a shortcut (or want to confirm what’s set), press Ctrl + Shift + A (Windows/Linux) or Cmd + Shift + A (macOS) to open the Find Action dialog. Type Toggle Sidebar here, and it’ll show you the current shortcut (if any) right next to the action name. This is a lifesaver for digging up those hard-to-remember commands!

内容的提问来源于stack exchange,提问作者WebAppDeveloper

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:34:17