Function Detection: Detects both traditional and arrow function declarations in the active file.
Quick Execution: Easily execute any detected function with a few clicks.
Terminal Integration: Functions are executed in a VS Code terminal, allowing for live output observation.
Temporary File Creation: Generates a temporary file for function execution to avoid altering the original source code.
Auto Clean-up: Automatically deletes temporary files after the terminal is closed.
Trigger the Command: Run the command node-exec-function.executeFunction from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Select a Function: Choose a function from the list of detected functions in your file.
Watch the Output: The function will run in a new terminal window. Monitor the output in real time.
Close the Terminal: Press Enter in the terminal after execution to close it and trigger the clean-up of temporary files.
Install directly from the Visual Studio Code Marketplace. Search for "Node Execute Function" and click install.
Visual Studio Code
Permissions to create and delete temporary files in your work directory
Supports only simple function execution without arguments.
Contributions are welcome! Feel free to open issues or submit pull requests on the repository for bug fixes, improvements, or new features.