You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Header switching currently only works with a set of hard-coded header (and source) file extensions like .h, .hpp, .hh, and .hxx, so the extensionless "Geode" header will not work. We might be able to add this ability later, although even Visual Studio doesn't switch to extensionless headers. If you find another issue using headers with extensions, let us know.
When componentB/tests/inc/TestDataBuilder.h is opened and I press Alt+O, the editor jumps to componentA/tests/src/TestDataBuilder.cpp instead of the source file in componentB. When I press Alt+O a second time, it jumps to componentA/tests/inc/TestDataBuilder.h. It seems that the algorithm simply picks the first header it finds in alphabetical order without considering locality.
Activity
sean-mcmanus commentedon Apr 10, 2017
Header switching currently only works with a set of hard-coded header (and source) file extensions like .h, .hpp, .hh, and .hxx, so the extensionless "Geode" header will not work. We might be able to add this ability later, although even Visual Studio doesn't switch to extensionless headers. If you find another issue using headers with extensions, let us know.
mjendruk commentedon Oct 9, 2018
I have similar issue. I have the following folder structure (simplified)
When
componentB/tests/inc/TestDataBuilder.his opened and I press Alt+O, the editor jumps tocomponentA/tests/src/TestDataBuilder.cppinstead of the source file incomponentB. When I press Alt+O a second time, it jumps tocomponentA/tests/inc/TestDataBuilder.h. It seems that the algorithm simply picks the first header it finds in alphabetical order without considering locality.da2r-20 commentedon Oct 9, 2018
I have the same issue as Max Jendruk (@mjendruk)
sean-mcmanus commentedon Oct 9, 2018
Max Jendruk (@mjendruk) Your repro is different from the original issue. I've filed a new issue for you at #2635 .
[-]"Switch Header/Source" matches wrong header[/-][+]"Switch Header/Source" doesn't find extensionless headers[/+]github-actions commentedon Oct 17, 2020
This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.