Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

clion

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.

like image 914
cloudsurfin Avatar asked Nov 25 '15 00:11

cloudsurfin


3 Answers

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

like image 167
xorza Avatar answered Nov 10 '22 10:11

xorza


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

F10 Header/Source

like image 32
Gianluca Ghisleni Avatar answered Nov 10 '22 09:11

Gianluca Ghisleni


you can try: Navigate | Related Symbol

like image 4
earthwu Avatar answered Nov 10 '22 10:11

earthwu