# Tasks

The associated tasks described here are Eclipse's way of keeping track of small notes that are part of the code. By default StatET defines two different keywords that will allow Eclipse to highlight the tasks in the code and offer the information in a Tasks View:

- `TODO`
- `FIXME`

The meaning of the task tags is self-explanatory.

#### Creation of tasks by task tags

The tasks will be recognized as such if they are preceded with a single comment character and a single space, as in `# TODO: remove hard-coding of colours`

The tasks are created or removed when the file changed and Eclipse runs a build. Usually this happens automatically when the file is saved in the R-editor. If automatic build in Eclipse is disabled, a manual build must be started to update the tasks (build commands are located in the menu Project). If files was changed outside of Eclipse, refreshing the relevant folders of the workspace in the Project Explorer let Eclipse detect the changes.

The creation of tasks by tasks tags in R files works only for files in R projects.

#### Tasks in the editor

The tasks appears as a type of Eclipse annotations in the editor. Therefore, an individual task icon will be displayed in the left gutter. In the right gutter, which gives an overview of all Eclipse annotations, the task annotations are indicated by small blue rectangles. Clicking on such a rectangle will position the cursor on the corresponding task.

#### Options

One can edit and add or remove task keywords in the preferences at R > Task Tags

The tags can also be configured project-specific.

## —

### Related topics