This VS Code extension lets you quickly insert debugging functions dd() and dump() right below the selected line in your editor, using commands available from the command palette.
Features
Inserts dd(selectedText); below the selected line using the command debug-inserter.insertDd.
Inserts dump(selectedText); below the selected line using the command debug-inserter.insertDump.
Compatible with any programming language.
No default keyboard shortcuts are set, allowing each user to configure their own.
Requirements
There are no additional requirements to use this extension.
Extension Settings
This extension does not add any extra settings to VS Code.
Keybindings
No default keyboard shortcuts are set. You can assign your own shortcuts from the VS Code keyboard shortcuts settings by searching for the commands:
debug-inserter.insertDd
debug-inserter.insertDump
Example: Setting up custom keybindings
Open the command palette (Ctrl+Shift+P or F1).
Type and select "Preferences: Open Keyboard Shortcuts".
Search for the command, for example: debug-inserter.insertDd.
Click the pencil icon ✏️ and assign your preferred shortcut.
Or edit your keybindings.json file directly like this: