替换Intellij中多个源文件中所有出现的字符串 [英] Replace all occurences of string in multiple source files in Intellij

查看:1340
本文介绍了替换Intellij中多个源文件中所有出现的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能吗?
2个选项更可取:
1)变量
2)其他字符串。
谢谢。

Is it possible? 2 options is preferable : 1) with variable 2) other string. Thanks.

推荐答案

是的,这是可能的。该命令名为路径替换(键盘快捷键首选项中的Ctrl-Shift-R)。

Yes, it's possible. The command is named "Replace in path" (Ctrl-Shift-R in my keyboard shortcut preferences).

您可以通过键入Ctrl-shift-A自己找到它,并键入替换:这将列出名称中包含替换一词的所有命令。

You could have found it yourself by typing Ctrl-shift-A, and typing "replace": this will list all the commands containing the word "replace" in their name.

这篇关于替换Intellij中多个源文件中所有出现的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆