Home Download Buy Blog Forum Support

Switch Header/Implementation

Switch Header/Implementation

Postby slprsrvc on Tue Jul 05, 2011 2:14 pm

I cannot get the command: Switch File -> Switch Header/Implementation to work at all on Mac build 2076. Neither the keyboard shortcut (on mac cmd + alt + up_arrow), nor selecting the command from the menu does anything at all.

I assume this works in the same way as Textmate, where, for example, if you have both header and implementation files open in tabs, and issue this command while one of those files is the active tab, it will switch to the other file.

Any suggestions on what might be the problem?
Thanks.
slprsrvc
 
Posts: 6
Joined: Tue Jul 05, 2011 2:04 pm

Re: Switch Header/Implementation

Postby jps on Tue Jul 05, 2011 2:19 pm

The alternate file doesn't have to be open, but it does have to be in the same directory as the current file, which I assume is the issue here.

FWIW the logic is in Packages/Default/switch_file.py
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Switch Header/Implementation

Postby slprsrvc on Tue Jul 05, 2011 2:42 pm

Thanks for the quick reply. Yes that is indeed the issue, the other file is in another folder but in the same project.
slprsrvc
 
Posts: 6
Joined: Tue Jul 05, 2011 2:04 pm

Re: Switch Header/Implementation

Postby jbrooksuk on Tue Jul 05, 2011 3:55 pm

Sorry for my ignorance.

What exactly does this do?
jbrooksuk
 
Posts: 754
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Switch Header/Implementation

Postby slprsrvc on Wed Jul 06, 2011 6:58 pm

jbrooksuk wrote:Sorry for my ignorance.

What exactly does this do?


The command itself? In C or C++ for example, I have separate header and implementation files for all my classes, so if I am working on a class' header and want to switch directly to its implementation file say, this command provides a quick way to do that, without having to find the specific tab in the menu bar, or hunt for in it the project drawer.
slprsrvc
 
Posts: 6
Joined: Tue Jul 05, 2011 2:04 pm

Re: Switch Header/Implementation

Postby jbrooksuk on Thu Jul 07, 2011 9:45 am

slprsrvc wrote:The command itself? In C or C++ for example, I have separate header and implementation files for all my classes, so if I am working on a class' header and want to switch directly to its implementation file say, this command provides a quick way to do that, without having to find the specific tab in the menu bar, or hunt for in it the project drawer.

:? I should have known that...

Thanks :D
jbrooksuk
 
Posts: 754
Joined: Sun Apr 11, 2010 10:37 am
Location: England


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 27 guests