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
84 stars 9 forks source link

[Feature] Extract code block to function/method #44

Open enwi opened 2 years ago

enwi commented 2 years ago

One of the most powerful refactorings is possibly the extraction of a block of code into a new function/method. Would it be possible to add this feature?

reedhedges commented 1 year ago

Similar to this, creating a function definition and/or declaration from a call to a new undeclared function is also essential.

Does anyone have any tips on how to get started implementing these features?