Adds a command/code-action Add Definitions... that will prompt the user to select undefined functions in the current file to add definitions for, and prompt the user for the target file. If a matching source file doesn't already exist, the user can select to create a new file (this invokes Create Matching Source File). Additionally, invoking Create Matching Source File directly will also ask the user if they want to add definitions. If the user selects a function that must be defined in the same file (inline, unspecialized templates, etc.), then it will skip the prompt to select a target file. Create Matching Source File will only show functions that can be defined in the source file.
Add Definitions... is accessible through the Refactor... menu or command palette.
Adds a command/code-action
Add Definitions...
that will prompt the user to select undefined functions in the current file to add definitions for, and prompt the user for the target file. If a matching source file doesn't already exist, the user can select to create a new file (this invokesCreate Matching Source File
). Additionally, invokingCreate Matching Source File
directly will also ask the user if they want to add definitions. If the user selects a function that must be defined in the same file (inline, unspecialized templates, etc.), then it will skip the prompt to select a target file.Create Matching Source File
will only show functions that can be defined in the source file.Add Definitions...
is accessible through theRefactor...
menu or command palette.