# Annotations (2 questions): Keyboard shortcuts, default labels, and "show/hide" checkbox

**URL:** <https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797>\
**Category:** Support & Discussions\
**Tags:** eeg\
**Created:** [October 12, 2021, 3:48pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797 "2021-10-12T15:48:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulF](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@PaulF](https://mne.discourse.group/u/PaulF)\
**Post date:** [October 12, 2021, 3:48pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/1 "2021-10-12T15:48:18Z")

</div>

- MNE-Python version: 0.23
- operating system: Mac OS 11.3.1, Python 3.9

Three questions

1. When annotating, is there a keyboard shortcut or easy means to clear all annotations I’ve made?
2. When I add a new label, the default name comes up “Bad\_\_” . Is there a file where I can change this default?

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [October 13, 2021, 12:12pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/2 "2021-10-13T12:12:11Z")

</div>

I will let others reply to the first question(s), but I remember asking if there was a way to change the default name `Bad_` in a configuration file, and I think there is not. Maybe it would be worth to add?

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [October 14, 2021, 12:42pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/3 "2021-10-14T12:42:03Z")

</div>

1. No, you’d have to clear the annotations using a command:

2. I don’t think so. But remember that annotations beginning with “bad” are auto-ignored or rejected when epoching by default so having “Bad\_” as the default name makes sense - it lets you to quickly change it to “Bad\_muscle” for example.

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [October 14, 2021, 12:46pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/4 "2021-10-14T12:46:16Z")

</div>

BTW - using a keyboard shortcut to clear all annotations would be pretty dangerous if the shortcut was easy to press by accident.

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [October 14, 2021, 1:33pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/5 "2021-10-14T13:33:00Z")

</div>

> [@mmagnuski](#):
>
> - No, you’d have to clear the annotations using a command:
> 
> ```python
> raw.annotations = None
> 
> ```

I don’t think we recommend doing that, unless something has recently changed and I missed it. The recommended way to erase your annotations is by calling

```python
raw.set_annotations(None)

```

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [October 14, 2021, 1:33pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/6 "2021-10-14T13:33:41Z")

</div>

> [@mmagnuski](#):
>
> BTW - using a keyboard shortcut to clear all annotations would be pretty dangerous if the shortcut was easy to press by accident.

Only as long as we don’t have an Undo button 🙈

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [October 14, 2021, 1:57pm UTC](https://mne.discourse.group/t/annotations-2-questions-keyboard-shortcuts-default-labels-and-show-hide-checkbox/3797/7 "2021-10-14T13:57:19Z")

</div>

Thanks for correcting me @richard, I was not sure about that.
