76

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.

cloudsurfin
  • 2,467
  • 2
  • 25
  • 29

4 Answers4

130

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

Ayrat
  • 1,221
  • 1
  • 18
  • 36
19

To switch between .h and .c files I use F10 key or the Navigate menu in CLion in Linux system:

F10 Header/Source

4

you can try: Navigate | Related Symbol

earthwu
  • 57
  • 1
0

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

Mansouri
  • 233
  • 4
  • 6