# Comment out multiple lines of code in macro editor

**URL:** https://community.onlyoffice.com/t/comment-out-multiple-lines-of-code-in-macro-editor/20441
**Category:** Docs
**Tags:** how-to-question
**Created:** [9 August 2026 14:50 UTC](https://community.onlyoffice.com/t/comment-out-multiple-lines-of-code-in-macro-editor/20441 "2026-08-09T14:50:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GutmenschAlex](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/g/dc4da7/32.png) [@GutmenschAlex](https://community.onlyoffice.com/u/GutmenschAlex)
#### Post date: [9 August 2026 14:50 UTC](https://community.onlyoffice.com/t/comment-out-multiple-lines-of-code-in-macro-editor/20441/1 "2026-08-09T14:50:43Z")

</div>

I want to ask a how-to question

In this video you show us that it is possible to comment out multiple lines of code inside the macro editor.

How do I do this on a german keyboard?

[![](https://img.youtube.com/vi/xVo7CGE19fI/maxresdefault.jpg "Custom page numbers from page 2 with ONLYOFFICE macros") ](https://www.youtube.com/watch?v=xVo7CGE19fI)

OS: MacOS  
Additional information: German Keyboard

---

<div class="post-metadata">

### Author: ![Nurullo](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/nurullo/32/11006_2.png) [@Nurullo](https://community.onlyoffice.com/u/Nurullo)
#### Post date: [12 August 2026 14:09 UTC](https://community.onlyoffice.com/t/comment-out-multiple-lines-of-code-in-macro-editor/20441/2 "2026-08-12T14:09:21Z")

</div>

Hi @GutmenschAlex,

The **Cmd + /** shortcut doesn’t work correctly on **non-US** keyboard layouts — this is a known limitation of the code editor.

On your German Mac keyboard, you can use these instead:

- **Cmd+K, Cmd+C** — comment lines (Cmd+K, Cmd+U to uncomment)
- **Shift+Option+A** — toggle block comment
- **F1** — opens the Command Palette where you can search and run any action
