CLion: Keyboard cmd to switch between header and implementation files like in xcode

你。 提交于 2019-11-28 19:25:53

问题


In xcode I type cmd-shift up/down to switch between .h and .c files. How do I do that in CLion? Or more usefully, what would that action be called in the keymap? I don't find the keymap names terribly usefully named. None stand out for this purpose, including after the usual googling.


回答1:


The shortcut is called 'Related Symbol' in the keymap.
On Mac it defaults to Ctrl+Cmd+Up,
on Windows/Linux -- to Ctrl+Alt+Home.




回答2:


you can try: Navigate | Related Symbol




回答3:


If header and implementation files are already open you can switch between windows with double-shift and enter keys.



来源:https://stackoverflow.com/questions/33906528/clion-keyboard-cmd-to-switch-between-header-and-implementation-files-like-in-xc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!