问题
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