CLion: Keyboard cmd to switch between header and implementation files like in xcode
The shortcut is called ‘Related Symbol’ in the keymap. On Mac it defaults to Ctrl+Cmd+Up, on Windows/Linux — to Ctrl+Alt+Home.
The shortcut is called ‘Related Symbol’ in the keymap. On Mac it defaults to Ctrl+Cmd+Up, on Windows/Linux — to Ctrl+Alt+Home.
Little background I was having the same problem, albeit the project was not header-only, nevertheless, the open files from inc folder were throwing the aforementioned warning, even though the CMake file clearly marked that folder to be include_directory. *.hpp files do not belong to ${SOURCE} include_directories(“${PROJECT_SOURCE_DIR}/inc/”) add_subdirectory(src) add_executable(${EXECUTABLE_NAME} main.cpp ${SOURCE}) Since this is a perfectly … Read more
Update: If you are using CLion 2020.2, then it already supports Makefiles. If you are using an older version, read on. Even though currently only CMake is supported, you can instruct CMake to call make with your custom Makefile. Edit your CMakeLists.txt adding one of these two commands: add_custom_target add_custom_command When you tell CLion to … Read more