
Step 1:Command + ,
快键键打开:Preference :

Step 2 在 Preference 偏好设置中,搜索 Fully Expand Tree Node
,在 Keymap
选项页面中进行快捷键修改即可。

比如,你可以增加Mouse Shortcut鼠标快捷键:alt
++
。

修改完毕后,选中要展开的目录,然后通过按下键盘
alt
++
即可展开选中目录。
相应的,你也可以设置折叠目录的快捷键,在Preference偏好设置中,搜索 Collapse Node,在Keymap选项页面中对Other下的Collapse Tree Node进行快捷键修改即可。比如,你可以增加Mouse Shortcut鼠标快捷键:alt
+-

修改完毕后,选中被折叠目录的上层目录,然后通过按下键盘
alt
+-
即可进行目录折叠。
参考资料:
https://www.jetbrains.com/idea/documentation
https://www.jetbrains.com/help/idea/discover-intellij-idea.html
网友评论