> ## Content Index
> Fetch the complete content index at: https://www.narendravardi.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Best ever feature on Apple Notes
- URL: https://www.narendravardi.com/best-ever-feature-on-apple-notes/
- Published: 2025-02-22T10:30:57.000Z
- Updated: 2025-02-22T10:31:04.000Z
- Description: You can activate code blocks using ⌘ + ⇧ + M on Apple notes.
- Author: Narendra Vardi
- Tags: rough-note, Tools, 2025

**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

1. Press cmd + shift + m `⌘ + ⇧ + m`

![](https://storage.ghost.io/c/d9/fa/d9faef57-e1a8-4faa-a907-40713e9d52a6/content/images/2025/02/Screenshot-2025-02-15-at-9.35.57-PM-1.png)

Code block is activate by clicking ⌘ + ⇧ + M. ⌘ + ⇧ + m works too! (no need to turn on Caps lock!) 

1. Now, you can enter your code block.

![](https://storage.ghost.io/c/d9/fa/d9faef57-e1a8-4faa-a907-40713e9d52a6/content/images/2025/02/Screenshot-2025-02-15-at-9.39.22-PM.png)

Earlier, if you try to edit "Hello World!", the quotes will be changed to forward/backward quotes - leading to problems.

**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.

❗

This feature is not available on all Google accounts for some reason.

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.

[Code block formatter in Google docs](https://docs.google.com/document/d/1O-tEyE%5FiRvdewWEBlzHtRv2LQz5Y1u7SqlOI-sdLFP0/edit?usp=sharing&ref=narendravardi.com)