Search code examples
clion

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


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.


Solution

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