我经常使用 Notepad++ 的替换功能来替换多个文件中的代码。但是最近我不知道每当我在 Notepad++ 的替换文本框中粘贴多行代码时我做错了什么,只粘贴了第一行代码。所以我必须将所有代码都写在一行中,这会花费很多时间并且代码变得很麻烦。这对我来说非常困难,我无法在任何地方找到任何解决方案。请帮忙!
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-9493617747666534",
enable_page_level_ads: true
});
最佳答案
Notepad++ 本身不支持多行查找和替换操作。
引用: find multiple lines in notepad++
但是,ToolBucket 插件为 Notepad++ 添加了多行查找和替换支持:http://sumtips.com/2012/05/multiline-search-and-replace-notepad.html
安装:
Download and extract zip file, and copy the NppToolBucket.dll file to your Notepad++\plugins folder.
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.
关于javascript - Notepad++ 只在替换中粘贴复制代码的第一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45428468/