SimpleCodeGen is a Visual Studio Code extension that generates function templates for C++ code. When you select a function call like int ans = takeInput(); and trigger the command, this extension will insert a function template into your code.
- Generate Function Templates: Automatically create function templates from function calls in your code.
- Customizable: Customize the command to fit your coding style and requirements.
extension.createOrNavigateFunction: Generate a function template based on the selected function call.
You can use the following keybinding to trigger the command:
Ctrl+.: Trigger the function template generation command.
- Select a Function Call: Highlight a function call in your code, for example,
int ans = takeInput();. - Trigger the Command: Use the command
extension.createOrNavigateFunctionby pressingCtrl+.(or your configured keybinding). - View the Generated Template: The extension will insert a function template at the appropriate location in your code.
- Visual Studio Code: Make sure you have Visual Studio Code installed.
- C++ Environment: This extension is intended for use with C++ code.
-
Install from VSIX:
- Package your extension into a
.vsixfile usingvsce package. - Open VS Code and go to Extensions view (
Ctrl+Shift+X). - Click the three-dot menu in the top right and select "Install from VSIX...".
- Choose the
.vsixfile.
- Package your extension into a
-
Install from Marketplace:
- Publish your extension to the Visual Studio Code Marketplace for global access.
For any issues or feature requests, please open an issue on the GitHub repository.