Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.13.0
-
None
Description
Steps to Reproduce:
- # Open a CMake project
- Click File > Open File or Project...
- Select a CMakeLists.txt file from a subdirectory of the current project.
Expected Result:
The selected CMakeLists.txt file is opened for editing.
Actual Result:
Qt Creator prompts me to configure this brand new project that it thinks I am trying to open.
Rationale:
Sometimes I want to quickly open the CMake file corresponding to the current source file. If I know the target name, I can do Ctrl+K,cmo <targetname>. If I know the folder name I can do Ctrl+K,<foldername>/CMakeLists.txt. But I work on a large codebase with over 300 CMakeLists.txt files and it's pretty common that I know neither the folder nor the target name off hand. Pressing Ctrl+O quickly shows me the contents of the current directory, making it easy to click on the CMakeLists.txt file, but frustratingly it tries to open it as a brand new project.
Alternatively, a locator ("cmc"?) or a keyboard shortcut that opened the CMakeLists.txt corresponding to the current file would be useful.