Refactoring with Create Declaration
provides C/C++ users with an easy way to create a declaration from the implementation of a method. The declaration is placed in a header, and parameters in the declaration and implementation are consistent.
Hover over a method in a source file and select Create Declaration
from the refactoring menu.
An declaration is placed in an appropriate header near declarations of neighboring methods.
Navigate after Create Declaration
Use the Navigate
commands of Visual Assist X
to jump between the header and source file after Create Declaration
. Immediately after the create, Alt+Left returns you to the source file. Alt+Right returns you to the header.
If an appropriate header for a declaration cannot be found, the declaration is placed in the source file. Use copy and paste to move the declaration to a different file.
is available whether or not a declaration exists.
does not expose default parameters if they are commented in the implementation. You must expose or add default parameters manually.