BigBahss / vscode-cmantic

C/C++ code generation for VS Code: Generate Definitions, Getters, Setters, and much more.
https://bigbahss.github.io/vscode-cmantic/
MIT License
82 stars 9 forks source link

Add multiple definitions #25

Closed BigBahss closed 3 years ago

BigBahss commented 3 years ago

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.

BigBahss commented 3 years ago

Note to self: Fix bug when generating constructors and when generating in an empty namespace.