Select a function prototype then press Ctrl+Alt+C to copy its definition.
Commands and Settings
Command
Default Keybinding
Description
cpp-def-paster.copyDefinition
Ctrl+Alt+C
Copies function definition to the clipboard.
cpp-def-paster.magicCopy
Ctrl+C
Magic Copy: Copies the function definition to the clipboard only if the selection is made from right to left. Otherwise, fallback to normal copy.
On Mac, Ctrl is the Cmd key, and Alt is the Option key.
If you prefer not to use the Magic Copy, you can disable it in Settings -> Magic Copy: Enabled.
Several settings are available to customize the generated definition. For more details, search for cpp-def-paster.definition in Settings and refer to the descriptions provided there.