如何在记事本中使用 NppExec 创建新文件++?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 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.