# Contexts

Procedure: Install the Task Management plugin

This functionality relies on the [Task Management](https://plugins.jetbrains.com/plugin/11545-task-management)  plugin, which   you need to install and enable.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Plugins`.

2. Open the Marketplace tab, find the Task Management plugin, and click Install (restart the IDE if prompted).

A context is a set of bookmarks, breakpoints, and tabs opened in the editor. Contexts are linked to tasks, but you can work with contexts without associating them with specific tasks.

Having separate contexts lets you work on several things and switch between them without mixing the changes.

> **Tip:**
> You can view the list of bookmarks and breakpoints in the [Bookmarks](bookmarks.html) tool window.

Procedure: Save a context

1. In the main menu, go to `Tools | Tasks & Contexts | Save Context`.

2. In the Save Context dialog, enter the name of the context and click OK.

Procedure: Modify existing contexts

To modify an existing context, start by loading it. Once it is loaded, you can add or remove items as needed, then save the updated version.

1. In the main menu, go to `Tools | Tasks & Contexts | Load Context`.

2. Add bookmarks or breakpoints or open the necessary files and save the context: in the main menu, go to `Tools | Tasks & Contexts` and select Save Context.

Procedure: Switch between contexts

When you switch tasks, the IDE automatically updates the related contexts. However, if your contexts aren't linked to tasks, you can switch between them manually.

1. In the main menu, go to `Tools | Tasks & Contexts | Load Context`.

2. In the Load Context popup, select the necessary context from the list.

Alternatively, click the right arrow and select Load.

![Loading a context](https://resources.jetbrains.com.cn/help/img/idea/2026.2/load-contexts-popup.png)

Procedure: Clear a context

* To clear the current context without loading another one, select `Tools | Tasks & Contexts | Clear Context` from the main menu.

Procedure: Delete a context

When a task is finished, or if you do not need a context anymore, you can remove it.

1. In the main menu, go to `Tools | Tasks & Contexts | Load Context`.

2. In the Load Context popup, click the right arrow and select Remove.

