我知道这不是一个编程问题?
但我需要与 php 代码编辑器中的查找和替换功能相关的另一个帮助。我正在使用 eclipse 和 Dreamweaver,并且有大约 650 个 php 文件,并且希望在不打开单个文件的情况下替换所有文件中的字符串。你们能帮我一下吗,eclipse或Dreamweaver中是否有可用的函数,以便我可以将所有文件中的字符串替换为指定的字符串?
还有子文件夹层次结构。
任何帮助或建议将不胜感激。
I know that it is not a programming question ?
But i need a another help relating to find and replace function in php code editor. I am using eclipse and Dreamweaver and i have about 650 php files and would like to replace a string in all files without opening individual files. Could you guys Please help me that, is available any function in eclipse or Dreamweaver so that i can replace the string with specified string to all files ?
There is also sub folders hierarchy.
Any help or suggestion will be highly appreciated.
发布评论
评论(3)
在 Eclipse 中,转到搜索菜单,选择文件...,在文件名模式中输入要搜索的字符串和
*.php
,然后单击替换...按钮。您还可以单击搜索按钮,然后在搜索视图中右键单击并选择替换全部...或替换所选... >
In Eclipse, go to the Search menu, choose File..., enter the string to search and
*.php
in the file name pattern, then click the Replace... button.You may also click the Search button, and then right-click in the Search view and choose Replace All... or Replace selected...
谷歌搜索了一下,瞧:
http://www.avajava.com/tutorials/lessons/how-do-i-do-a-find-and-replace-in-multiple-files-in-eclipse.html
分步说明。
Googled it and, voila:
http://www.avajava.com/tutorials/lessons/how-do-i-do-a-find-and-replace-in-multiple-files-in-eclipse.html
Step by step instructions.
在 Dreamweaver 中,按 CTRL+F(或编辑 > 查找(并替换)),然后从“查找位置:”下拉列表中选择所需内容菜单。您有:
对于 eclipse,请检查以下内容:搜索项目中包含文本 ' 的所有文件Eclipse 中的查询字符串
In Dreamweaver, CTRL+F (or Edit > Find (and replace)) then choose whatever you want from "Find in:" dropdown menu. You have:
For eclipse, check this: Search for all files in project containing the text 'querystring' in Eclipse