Toggle between declaration and definition of a function.
- Toggle works even for specific case where a .h has several .cpp files.
- If the declaration and the definition are in the same file (like an inline function) then the cursor will move from the header to the body and vice versa, otherwise the cursor will jump to the start of the function's body only if it is not already inside this body. That way you can toggle between declaration and definition without loosing your current cursor position.
- If your cursor is not inside a function when you try to toggle, it will default to the command Toggle .h/.cpp
The active document must be a source code document of the C++ language.