Frappe Bench Tools
📑 Table of Contents
Features🧭 Open Bench ConsoleOpen or switch to a Frappe Bench console terminal directly from VS Code.
📋 Paste to Bench Console
📄 Paste Clipboard to Bench ConsolePaste content directly from the clipboard to the Bench console.
📦 Import in Bench ConsoleImport functions, classes, or variables by placing the cursor on them.
🌐 Import All in Bench ConsoleImport all exports from a module using:
🏷️ Import As in Bench ConsoleImport with a custom alias — prompted for an alias name.
⚡ Run Function in Bench ConsoleAutomatically import and execute a function by placing the cursor on its definition.
🧩 Bench Execute Python FunctionExecute a Python function using:
🖱️ Context Menu IntegrationAccess all features through a dedicated “Frappe Bench” submenu in the right-click context menu.
PrerequisitesBefore using the extension, make sure you have the following: Required
InstallationFrom VS Code Marketplace
From Command Line
ConfigurationConfigure the extension from VS Code settings (Ctrl+, or Cmd+,). 🧱 General Settings
|
| Command | Description |
|---|---|
Open Bench Console |
Open or switch to the bench console terminal |
Paste to Bench Console |
Paste selected text or current line to console |
Paste Clipboard to Bench Console |
Paste clipboard content to console |
Import in Bench Console |
Generate and execute import statement |
Import All in Bench Console |
Import all exports from module |
Import As in Bench Console |
Import with custom alias |
Run Function in Bench Console |
Import and execute function |
Bench Execute Python Function |
Execute function using bench execute command |
Troubleshooting
⚠️ “Copy Python Path extension is not installed”
Install the dependency: Copy Python Path
💥 Terminal not responding
Close the terminal and re-run the command — a new terminal will be created automatically.
🧩 Import statements not working
Ensure your Python files are inside a valid Frappe app structure with correct module paths.
🎯 Import not detecting object
Place the cursor exactly on the function, class, or variable name before running the import or run commands.
Contributing
Contributions are welcome! Feel free to submit a Pull Request or open an Issue on GitHub.
Support
For issues, suggestions, or feature requests — visit the GitHub repository.









