如何在记事本中使用 NppExec 创建新文件++?

发布于 2024-09-09 21:26:48 字数 184 浏览 0 评论 0原文

在 Notepad++ 中,我想创建一个新文件,然后将另一个文件的内容放入该新文件中。

这可以通过创建宏来实现,但问题是,我必须复制粘贴内容,丢失之前剪贴板上的所有内容,而我不希望这样。

所以我查看了 NppExec。使用 NppExec,我可以将另一个文件的内容放入当前打开的文件中,但我似乎找不到任何函数来创建新文件。

In Notepad++, I would like to create a new file and then put the contents of another file in that new file.

This is possible by creating a macro, but the problem is, I have to copy-paste the contents, losing whatever was on the clipboard before, and I don't want that.

So I looked at NppExec. With NppExec, I can put the contents of another file in the currently open file, but I can't seem to find any function to create a new file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

擦肩而过的背影 2024-09-16 21:26:48

我认为 NppExec 尚未内置此功能,但您可以通过使用 npp_open 和不存在的文件名来绕过它。

I don't think that is built into NppExec yet, but you can sort of get around it by using npp_open with a file name that does not exist.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文