# Shortcuts for MAC

## 1. **General Shortcuts**

### **1.1 Search Everywhere**: `Shift` + `Shift`

Opens the universal search bar to find classes, files, actions, or symbols across the project.

<figure><img src="/files/qch5qBpkYLTL3nEF2rhS" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Classes:** A **class** in Java (or other languages supported by IntelliJ IDEA) is a blueprint for creating objects. It defines the properties and behaviors of objects through fields (variables) and methods.

**Examples in Java**: Customer, OrderService, ProductController

**Files:** Files include all the resources in your project, such as:

* Java files (`.java`)
* HTML files (`.html`)
* CSS files (`.css`)
* XML/JSON configuration files
* Any other type of file in your project directory.

**Examples**: `application.yml` (Spring configuration file),`index.html` (Frontend file), `pom.xml` (Maven configuration file)

**Actions:** Actions are operations or commands you can perform in IntelliJ IDEA. These include shortcuts to open windows, execute commands, refactor code, format code, etc.

**Examples of actions**: Reformat Code, Run Debug Configuration, Show Recent Files, Commit Changes

**Symbols:** Symbols include named elements within your code, such as:

* Methods
* Variables
* Constants
* Fields

**Examples in Java**: Methods: `calculateTotal()`, `fetchData()`,Variables: `int counter`, `String name` , Constants: `static final String APP_NAME`, Fields: `private double price;`
{% endhint %}

### **1.2 Open Settings/Preferences**: `Command` + `,`

Quickly opens the IntelliJ IDEA settings/preferences.

<figure><img src="/files/IqP4aXPRJyIXsscT2Xsj" alt="" width="563"><figcaption></figcaption></figure>

### **1.3 Switch Between Tabs**: `Control` + `Tab`

Shows the switcher to navigate between open files and tool windows.

<figure><img src="/files/hTxHeOhMnxXV5cN9z1J5" alt="" width="563"><figcaption></figcaption></figure>

### **1.4 Quick Documentation**: `F1`

Displays the documentation popup for the symbol at the caret.

<figure><img src="/files/M7sgyRJC1e41TiFDseUU" alt="" width="375"><figcaption></figcaption></figure>

### **1.5 Show Context Menu**: `Control` + `Space`

Opens the context menu at the caret.

<figure><img src="/files/9y1W9YnswSUlQ18zJnEP" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://www.pranaypourkar.co.in/the-programmers-guide/java/java-development-tools/intellij-idea/shortcuts-for-mac.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.
