Best ever feature on Apple Notes
You can activate code blocks using ⌘ + ⇧ + M on Apple notes.
Apple Notes now supports code blocks—an amazing feature I’ve always wanted!
Apple notes serves as a knowledge store for me. In the past, adding a code block and editing them would lead to formatting changes making the process cumbersome and leading to errors. But now, that's no longer the case.
Let's see how to activate code blocks on these tools.
Activating code blocks
on Apple Notes
- Press cmd + shift + m
⌘ + ⇧ + m

- Now, you can enter your code block.

Bonus:
You can add code blocks on Google docs as well.
The shortcut for this is to enter the backtick
button three times and press Enter
(similar to Slack)
```
Three times enter backtick button and Enter.
If this doesn't work, use the Google Doc linked below, where I have already added a code block. Simply copy and paste it into your document as needed, even if the shortcut doesn’t work.