开发者

How do I create a new file with NppExec in Notepad++?

开发者 https://www.devze.com 2023-01-07 11:25 出处:网络
In Notepad++, I would like to create a new file and then put the contents of another file in that new file.

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 pr开发者_运维百科oblem 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消