[英]“Open Implementation” in Eclipse CDT
From within Eclipse CDT (Juno), how can I quickly navigate to a the implementation(s) of a function/method declaration? 从Eclipse CDT(Juno)中,如何快速导航到函数/方法声明的实现?
The ctrl-click
keyboard shortcut allows me to navigate from the implementation (in a .cxx
file) to the declaration ( .h
file). ctrl-click
键盘快捷键允许我从实现(在.cxx
文件中)导航到声明( .h
文件)。 I want the opposite behavior. 我想要相反的行为。
当文本在函数上时使用F3 ,这在声明和实现之间交替。
The ctrl-click in the header file moves you to a source (implementation) file and vice-versa. 在头文件中按住Ctrl键单击可将您移动到源(实现)文件,反之亦然。
PS I test it on Juno SR1. PS我在Juno SR1上测试它。
Alternatively, one may jump from declaration ( .h
) to definition ( .cpp
) and backwards, using context menu item Toggle Source/Header
(given the method/function highlighted). 或者,可以使用上下文菜单项
Toggle Source/Header
(在突出显示方法/函数的情况下)从声明( .h
)跳转到定义( .cpp
)并向后跳转。
This also helped me fix the initial F3 and Ctrl + click's incorrect behavior, which pressure forwarded only and uniquely to method declaration. 这也帮助我修复了初始F3和Ctrl +单击的不正确行为,该压力仅转发并且唯一地转发给方法声明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.