# Search in Files

The **Search in Files** feature enables users to efficiently search for specific terms across all files within a selected workspace. Integrated into a React-based IDE, this feature provides a user-friendly interface for locating and navigating to search results, enhancing productivity during development, especially for projects involving multiple files like smart contracts.

#### Key Features:

* **Workspace-wide Search**: Runs across every file in the currently selected workspace.
* **User-Friendly Interface**: Seamlessly integrated into Q-Remix’s React-based IDE for an intuitive developer experience.
* **Efficient Navigation**: Clicking a result takes you directly to the corresponding file and line.

<figure><img src="/files/v4ZxEHaq1I0tuVxhCEI2" alt=""><figcaption><p>search bar</p></figcaption></figure>

#### Highlighted Matches

Matches are visually enhanced to improve readability and focus.

* **Implementation**: Utilizes **regular expressions** to detect search terms in text.
* **Rendering**: Matched terms are wrapped in a

  ```html
  <span class="bg-yellow-200">
  ```

  element to apply a yellow background highlight.
* **Scope**:

  * Matches are highlighted both in **file names** and **content lines**.
  * Supports multiple matches per file and line.

  #### Use Case:

  This feature significantly boosts productivity by helping developers:

  * Track down specific function names or variables across contracts
  * Audit changes and dependencies quickly
  * Navigate large codebases with ease


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qremix.org/core-modules/search-in-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
