Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>dittoNew to Visual Studio Code? Get it now.
ditto

ditto

ZhiruiLi

|
151 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Ditto

Ditto helps you to copy context senitive text in command.

Example:

When adding breakpoint in gdb, you may want to copy current file name and lineno with format FILENAME:LINENO. It's hard to find one plugin to satisfy various requirements.

With Ditto, just add key binding like:

"vim.normalModeKeyBindingsNonRecursive": [
  {
    "before": [ "<leader>", "f", "y" ], "commands": [
      {
        "command": "ditto.copyText",
        "args": "{{path_basename activeEditor.document.filePath}}:{{add activeEditor.selection.active.line 1}}"
      }
    ]
  }, // yank filename and lineno
]
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft