简体   繁体   English

Notepad ++仅将复制代码的第一行粘贴在replace中?

[英]Notepad++ only paste first line of copied code in replace?

I uses replace feature of notepad ++ a lot to replace code across multiple files. 我经常使用记事本++的替换功能来替换多个文件中的代码。 But recently i don't know what i did wrong whenever i paste code of multiple lines in replace textbox of notepad++, only first line of code get pasted. 但是最近我不知道每当我在记事本++的替换文本框中粘贴多行代码时,我做错了什么,只有第一行代码被粘贴。 So i have to make all code in one line which takes lot of time and code become cumbersome. 因此,我必须将所有代码放在一行中,这需要花费大量时间,并且代码变得繁琐。 It is very difficult for me like this and i can't find any solution anywhere. 这样的我对我来说非常困难,我在任何地方都找不到任何解决方案。 Please help! 请帮忙!

  (adsbygoogle = window.adsbygoogle || []).push({



google_ad_client: "ca-pub-9493617747666534",



enable_page_level_ads: true

}); });

Notepad++ does not natively support multi-line find and replace operations. Notepad ++本机不支持多行查找和替换操作。

Reference: find multiple lines in notepad++ 参考: 在记事本++中查找多行

However, the ToolBucket plugin adds multi-line find and replace support to Notepad++: http://sumtips.com/2012/05/multiline-search-and-replace-notepad.html 但是, ToolBucket插件为Notepad ++添加了多行查找和替换支持: http : //sumtips.com/2012/05/multiline-search-and-replace-notepad.html

To install: 安装:

Download and extract zip file, and copy the NppToolBucket.dll file to your Notepad++\\plugins folder. 下载并解压缩zip文件,然后将NppToolBucket.dll文件复制到您的Notepad ++ \\ plugins文件夹中。

You can also get this plugin from within the text-editor itself by going to Plugin Manager from Plugins Plugin Manager > Show Plugin Manager. 您也可以从文本编辑器本身中获取此插件,方法是从插件插件管理器>显示插件管理器进入插件管理器。 Under the Available tab, find and select ToolBucket, and click Install. 在“可用”选项卡下,找到并选择“工具桶”,然后单击“安装”。

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

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