CMake icon indicating copy to clipboard operation
CMake copied to clipboard

Feature Request: Navigate to CMakeLists.txt in subdirectory from add_subdirectory

Open sourcedelica opened this issue 6 years ago • 2 comments

Currently if you Ctrl-Click / Cmd-Click on a subdirectory name in add_subdirectory it takes you to the directory itself in the project pane. That's not as useful as going to the CMakeLists.txt in that subdirectory which is what you really want to do in most cases. You should be able to navigate between all of the CMakeLists.txt in the project.

Change the navigate behavior of add_subdirectory to go to the corresponding CMakeLists.txt. Maybe have an alternate keystroke that will take you to the directory (the current behavior).

sourcedelica avatar Oct 10 '19 14:10 sourcedelica

It's bundled JetBrain's CMake plugin behavior. Would suggest reporting that as feature request in their bug tracker: https://youtrack.jetbrains.com/issues

PS Nevertheless will have a look if an easy fix is possible on my side.

ArtsiomCh avatar Oct 11 '19 17:10 ArtsiomCh

Done - https://youtrack.jetbrains.com/issue/PY-38469

sourcedelica avatar Oct 11 '19 21:10 sourcedelica