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

前端 未结 4 589
轻奢々
轻奢々 2020-12-24 00:28

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 fi

相关标签:
4条回答
  • 2020-12-24 00:41

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

    0 讨论(0)
  • 2020-12-24 00:53

    you can try: Navigate | Related Symbol

    0 讨论(0)
  • 2020-12-24 00:56

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

    0 讨论(0)
  • 2020-12-24 00:59

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

    F10 Header/Source

    0 讨论(0)
提交回复
热议问题