kmacros
Features1. HTMLCloneShortcut: This command clones the HTML element at the current cursor position. 2. HTMLClone With IncrementShortcut: Similar to the previous command, this clones the HTML element at the cursor position but also increments any numbers found within the element. 3. Calculate Selected Expression or Flip BooleansShortcut: This versatile command can:
Examples:
4. Select All Text in File + Copy to ClipboardShortcut: Selects all text in the current file and then copies it to the clipboard. Note: This command is very handy for programmers using Large Language Models! 5. Inline Rust Macro ArgumentsShortcut: This command inlines arguments in Rust macros, making them more readable and concise. 6. Create HuggingFace LinkShortcut: Generates a HuggingFace download link for the selected text, formatting it as a Markdown link. 7. Remove Comments on CopyShortcut: This command overrides the default copy behavior. When copying text, it removes comments and can optionally remove whitespace, even in Markdown files (configurable). ConfigurationKMacros offers several configuration options to customize its behavior:
You can modify these settings in your VSCode settings.json file or through the Settings UI. Installation
UsageAfter installation, you can use the provided keyboard shortcuts or run the commands from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac). ContributingIf you'd like to contribute to LicenseThis extension is released under the MIT License. We hope Enjoy! |