php 如何替换 Netbeans 中的字符串?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11636890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 00:55:01  来源:igfitidea点击:

How can I replace a string in Netbeans?

phpnetbeansreplacefind

提问by Mohammad Saberi

Possible Duplicate:
Search and Replace Entire Project (Netbeans)

可能的重复:
搜索和替换整个项目(Netbeans)

Other IDE's have a feature to find and replace something in code. I want this feature in Netbeans. I know there is the refactor feature, but that's only for variables. How can I find and replace text that isn't a variable name?

其他 IDE 具有在代码中查找和替换某些内容的功能。我想要 Netbeans 中的这个功能。我知道有重构功能,但这仅适用于变量。如何查找和替换不是变量名称的文本?

回答by Sturm

CTRL+SHIFT+H will open the replace dialogue where you can find+replace in any or all of your open projects.

CTRL+SHIFT+H 将打开替换对话框,您可以在其中查找+替换任何或所有打开的项目。

回答by Ricardo Altamirano

Ctrl+ Shift+ Hgives you the Find and Replace dialogue, as shown:

Ctrl+ Shift+H为您提供了查找和替换对话框,如图所示:

enter image description here

在此处输入图片说明

If you ever have trouble finding a certain function in Netbeans, one of the first places you can check is the list of keyboard shortcuts.

如果您在 Netbeans 中找不到某个功能,您可以首先检查的地方之一是键盘快捷键列表。