Search code examples
webstorm

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


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

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


Solution

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

    You cannot.

    1. You cannot set a specific entry as a default one.
    2. The IDE will (should) remember the last option used when you invoke "Find/Replace in Files" next time.
    3. If you invoke "Find/Replace in Files" from a folder context (e.g. from the Project View panel) then the IDE automatically will select that folder as an option instead of what you have there from the previous time.

    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.

    You can see the same "entre view" using in-file replace:

    • There is an "Open in Find Tool Window" button in the search toolbar that will open ALL matches in a standard Find Results toolwindow (the same window that you get when you hit the "Open in Find Window" button in the bottom right of Find/Replace in Files). So ALL matches will be listed there;

      enter image description here

    • the Preview area is also available (may need to enable it first -- there is a button for that). It also allows editing the file content right there.

      enter image description here