Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C++ Definition PasterNew to Visual Studio Code? Get it now.
C++ Definition Paster

C++ Definition Paster

binary-song

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

C++ Definition Paster

🌏 中文 | English

Usage

Select a function prototype then press Ctrl+Alt+C to copy its definition.

demo

Commands and Settings

Command Default Keybinding Description
cpp-def-paster.copyDefinition Ctrl+Alt+C Copies function definition to the clipboard.
cpp-def-paster.magicCopy Ctrl+C Magic Copy: Copies the function definition to the clipboard only if the selection is made from right to left. Otherwise, fallback to normal copy.

On Mac, Ctrl is the Cmd key, and Alt is the Option key.

If you prefer not to use the Magic Copy, you can disable it in Settings -> Magic Copy: Enabled.

Several settings are available to customize the generated definition. For more details, search for cpp-def-paster.definition in Settings and refer to the descriptions provided there.

PRs are welcome!

C++ 定义粘贴器

🌏 中文 | English

使用方法

从右到左选择一个函数原型,然后按 Ctrl+Alt+C 复制其定义。

demo

命令和设置

命令 默认键绑定 描述
cpp-def-paster.copyDefinition Ctrl+Alt+C 将函数定义复制到剪贴板。
cpp-def-paster.magicCopy Ctrl+C “魔法复制”:从右到左选择时,将函数定义复制到剪贴板。否则,正常复制。

在 Mac 上,Ctrl 是 Cmd 键,Alt 是 Option 键。

如果不想使用魔法复制,可以禁用设置中的 "Magic Copy: Enabled"。

可以在设置中配置如何生成函数定义。详情请在设置中搜索“cpp-def-paster.definition”,并参阅相关选项的描述。

欢迎 PR!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft