# Keyboard Shortcuts for H1-H

**URL:** <https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891>\
**Category:** Feature requests\
**Tags:** ui-ux\
**Created:** [January 13, 2024, 2:03pm UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891 "2024-01-13T14:03:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelfreund](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pixelfreund/32/59525_2.png) [@pixelfreund](https://forum.obsidian.md/u/pixelfreund)\
**Post date:** [January 13, 2024, 2:03pm UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891/1 "2024-01-13T14:03:39Z")

</div>

### Use case or problem

Working with the keyboard only, i can barely format the Headings. Even though I use the Hashtag (MacOS Version), the Headings Formatting are not always recognized.

### Proposed solution

Keyboard Shortcuts eg: Option KEy +1 = H1, Option KEy +2 = H2 etc..

Thanks for your feedback.

---

<div class="post-metadata">

**Author:** ![henrikn](https://forum.obsidian.md/user_avatar/forum.obsidian.md/henrikn/32/55864_2.png) [@henrikn](https://forum.obsidian.md/u/henrikn)\
**Post date:** [January 14, 2024, 8:27am UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891/2 "2024-01-14T08:27:19Z")

</div>

I believe you could use the built-in hotkeys settings with the “Set as heading” commands.

 ![Screenshot 2024-01-14 at 08.25.40](https://forum.obsidian.md/uploads/default/original/3X/f/c/fcd2ca17d7bbdebd4085fb2197950538012a0f0b.png)

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [January 14, 2024, 8:45am UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891/3 "2024-01-14T08:45:58Z")

</div>

> [@pixelfreund](#):
>
> Even though I use the Hashtag (MacOS Version), the Headings Formatting are not always recognized.

Possible culprits:

- The hashes need to start at the beginning of the line, with no indentation.
- There needs to be a space between the hash(es) and the text.

```auto
# Heading
  # Not a heading
#Not a heading either

```

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [January 14, 2024, 11:20am UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891/4 "2024-01-14T11:20:17Z")

</div>

I tested this source **in reading mode** and it should produce headings despite optional 0–3 initial space before #:

```markdown
·························································
 # heading 1
  ## heading 2
   ### heading 3
   ### heading 3
   ### heading 3 ###

```

What do you think incorporating that syntax to live preview? Typing 1–3 initial spaces into lines have some kind of special function in Obsidian. When you write first line with 1–3 space indentation, that indentation is preserved in the next line automatically:

```html
·························································
  my content in line 1
  my content in the next line <!-- two initial spaces are added automatically! -->

```

Obsidian has at least three separate indentation‑related settings but I think none of these control the behavior I described above. In any case it stops headings being recognized in live preview which is inconsistent to reading view.

---

<div class="post-metadata">

**Author:** ![combs](https://forum.obsidian.md/user_avatar/forum.obsidian.md/combs/32/73447_2.png) [@combs](https://forum.obsidian.md/u/combs)\
**Post date:** [November 20, 2024, 2:57pm UTC](https://forum.obsidian.md/t/keyboard-shortcuts-for-h1-h/74891/5 "2024-11-20T14:57:08Z")

</div>

I think it’d be a nice UX if the keyboard shortcuts Ctrl+Alt+1 through 6 were default-assigned to Set as Header 1 through 6. This mirrors gdocs, which a few people might have used.
