WebStorm的"Replace"中的默认选项有没有办法重新设置为"Current File"?

Is there any way to reset the default option as "Current File" in "Replace" of WebStorm?

有什么办法可以把WebStorm的“替换”中的默认选项重新设置为“当前文件”吗?

Is there any way to reset the default option as "Current File" in "Replace" of WebStorm?

你不能。

  1. 您不能将特定条目设置为默认条目。
  2. IDE 将(应该)记住您下次调用“Find/Replace in Files”时使用的最后一个选项。
  3. 如果您从文件夹上下文(例如从“项目视图”面板)调用“Find/Replace in Files”,那么 IDE 会自动 select 该文件夹作为一个选项,而不是你上次那里有什么。

The reason why I need it cause it'll be better for me to get a quick and entire view for the content I am searching.

您可以使用 in-file 替换:

来查看相同的“主视图”
  • 搜索工具栏中有一个“在查找工具 Window 中打开”按钮,它将在标准查找结果工具window(相同的 window,当你点击文件中 Find/Replace 右下角的“在查找 Window 中打开”按钮时得到的)。所以所有匹配项都会列在那里;

  • 预览区域也可用(可能需要先启用它——有一个按钮)。它还允许在此处编辑文件内容。