简体   繁体   English

如何将快照从 CodeSnap VSCode 扩展复制到剪贴板而不保存?

[英]How to copy the snapshot from CodeSnap VSCode Extension into clipboard without saving it?

Using the latest version of CodeSnap works properly on VSCode on Windows.在 Windows 上的 VSCode 上使用最新版本的CodeSnap可以正常工作。 It attempts to save the snapshot of a desired piece of code when I click on its symbol (1).当我单击其符号 (1) 时,它会尝试保存所需代码段的快照。

在此处输入图像描述

However, I'm not able to copy it to the clipboard directly as the docs suggest through (2).但是,我无法按照文档通过 (2) 的建议直接将其复制到剪贴板。 Instead, it copies the code .相反,它会复制代码

If you'd like to copy to clipboard instead of saving, click the image and press the copy keyboard shortcut (defaults are Ctrl+C on Windows and Linux, Cmd+C on OS X)如果您想复制到剪贴板而不是保存,请单击图像并按复制键盘快捷键(在 Windows 和 Linux 上默认为 Ctrl+C,在 OS X 上为 Cmd+C)

I also tried to follow the recommendation that follows without success:我还尝试遵循以下建议但没有成功:

... or bind codesnap.shutterAction to copy in your settings ...或绑定codesnap.shutterAction复制到你的设置

But I wasn't able to configure it properly, because I couldn't find such setting.但是我无法正确配置它,因为我找不到这样的设置。 Is there any way to copy the snapshot without saving it before?有没有办法复制快照而不保存它?

The keyboard shortcut to settings on VSCode on Windows is CTRL + < only. Windows 上 VSCode 设置的键盘快捷键是 CTRL + < 仅。
I accidentally discovered this when I was intending on commenting HTML with Shift + < but then instead, by mistake pressed CTRL and the settings panel opened.当我打算用 Shift + < 评论 HTML 时,我意外地发现了这一点,但后来却错误地按下了 CTRL 并打开了设置面板。 This happened often这种事经常发生

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM