# Disable all forms of markdown typing assistance in codeblocks

**URL:** <https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910>\
**Category:** Feature requests\
**Tags:** valuable\
**Created:** [February 14, 2024, 3:50pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910 "2024-02-14T15:50:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [February 14, 2024, 3:50pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/1 "2024-02-14T15:50:00Z")

</div>

### Use case or problem

Currently, most of the typing assistance that Obsidian provides do no make sense or actively gets in the way when writing within a codeblock. For example, auto-pairing of markdown symbols (like bold), link suggestion `[[`, tag suggestion `#`. Also unlinked mention should not be picked up ([here](https://forum.obsidian.md/t/do-not-show-x-in-unlinked-mentions-avoid-backlinks-detection-in-tags-wikilinks-and-md-links/8599)).

### Proposed solution

All these typing assistance tools should be deactivated while typing within a codeblock.

### Notes

This FR is a simplified version of this other [FR](https://forum.obsidian.md/t/make-obsidians-behavior-on-codeblocks-dependent-on-their-type/21729) that asks for type-dependent behavior.

---

<div class="post-metadata">

**Author:** ![mayurankv](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/13edae/32.png) [@mayurankv](https://forum.obsidian.md/u/mayurankv)\
**Post date:** [February 14, 2024, 4:49pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/2 "2024-02-14T16:49:59Z")

</div>

Agree with this completely!

---

<div class="post-metadata">

**Author:** ![Oneechan69](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/dfb087/32.png) [@Oneechan69](https://forum.obsidian.md/u/Oneechan69)\
**Post date:** [March 14, 2024, 1:52am UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/3 "2024-03-14T01:52:57Z")

</div>

### Steps to reproduce

- Create a new codeblock
- Write `[[` in it and see link suggestions.

In lua multi-line comment syntax is

```auto
--[[ Multi-line
comment --]]

```

Typing that triggers link suggestions.

---

<div class="post-metadata">

**Author:** ![adamreiswig](https://forum.obsidian.md/user_avatar/forum.obsidian.md/adamreiswig/32/37065_2.png) [@adamreiswig](https://forum.obsidian.md/u/adamreiswig)\
**Post date:** [September 13, 2024, 6:50pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/4 "2024-09-13T18:50:53Z")

</div>

I would also appreciate this. Bash code blocks keeps trying to change my text in double square brackets such as ‘if [[$var = “some text”]]; …. Etc. it’s quite annoying.

---

<div class="post-metadata">

**Author:** ![jms1](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jms1/32/57852_2.png) [@jms1](https://forum.obsidian.md/u/jms1)\
**Post date:** [September 27, 2024, 7:51pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/5 "2024-09-27T19:51:48Z")

</div>

Not sure if “me too” posts are welcome here or not, but I would also like to see this happen - either “always”, or have a preference which disables all forms of typing “assistance” within code blocks.

---

<div class="post-metadata">

**Author:** ![MrElyazid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mrelyazid/32/65203_2.png) [@MrElyazid](https://forum.obsidian.md/u/MrElyazid)\
**Post date:** [November 3, 2024, 6:48pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/6 "2024-11-03T18:48:08Z")

</div>

Totally support the addition of this feature. writing bash scripts in codeblocks is just painful with the current typing assistance.

---

<div class="post-metadata">

**Author:** ![varjoti](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@varjoti](https://forum.obsidian.md/u/varjoti)\
**Post date:** [April 30, 2026, 7:39am UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/7 "2026-04-30T07:39:04Z")

</div>

I am simply baffled that this has not gotten more attention. Most likely because people with hit separate problems and will not connect them to this feature request. I was actually considering making a bug report as obsidian’s code block is clearly not a code block. Discord, Bear you name it has a code block but obsidian does not as long as markdown typing assistance is messing with it.

Just to show how frustrating this is here is an example how obsidian behaves:

```auto
30. 6. Korrelaatio= 0.188 p-arvo= 0.0122
 1. 7. Korrelaatio= 0.302 p-arvo= 0.0001
 2. 7. Korrelaatio= 0.338 p-arvo= 0.0000
 3. 7. Korrelaatio= 0.381 p-arvo= 0.0000
 4. 7. Korrelaatio= 0.483 p-arvo= 0.0000
 5. 7. Korrelaatio= 0.667 p-arvo= 0.0000
 6. 7. Korrelaatio= 0.823 p-arvo= 0.0000
 7. 7. Korrelaatio= 1.000 p-arvo= 0.0000
 8. 7. Korrelaatio= 0.822 p-arvo= 0.0000
 9. 7. Korrelaatio= 0.677 p-arvo= 0.0000
10. 7. Korrelaatio= 0.565 p-arvo= 0.0000
11. 7. Korrelaatio= 0.527 p-arvo= 0.0000
12. 7. Korrelaatio= 0.520 p-arvo= 0.0000
13. 7. Korrelaatio= 0.448 p-arvo= 0.0000
14. 7. Korrelaatio= 0.374 p-arvo= 0.0000

```

Becomes this in obsidian:

```auto
30. 6. Korrelaatio= 0.188 p-arvo= 0.0122
 31. 7. Korrelaatio= 0.302 p-arvo= 0.0001
 32. 7. Korrelaatio= 0.338 p-arvo= 0.0000
 33. 7. Korrelaatio= 0.381 p-arvo= 0.0000
 34. 7. Korrelaatio= 0.483 p-arvo= 0.0000
 35. 7. Korrelaatio= 0.667 p-arvo= 0.0000
 36. 7. Korrelaatio= 0.823 p-arvo= 0.0000
 37. 7. Korrelaatio= 1.000 p-arvo= 0.0000
 38. 7. Korrelaatio= 0.822 p-arvo= 0.0000
 39. 7. Korrelaatio= 0.677 p-arvo= 0.0000
40. 7. Korrelaatio= 0.565 p-arvo= 0.0000
41. 7. Korrelaatio= 0.527 p-arvo= 0.0000
42. 7. Korrelaatio= 0.520 p-arvo= 0.0000
43. 7. Korrelaatio= 0.448 p-arvo= 0.0000
44. 7. Korrelaatio= 0.374 p-arvo= 0.0000

```

---

<div class="post-metadata">

**Author:** ![onusk](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/a87d85/32.png) [@onusk](https://forum.obsidian.md/u/onusk)\
**Post date:** [May 21, 2026, 6:22pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/8 "2026-05-21T18:22:33Z")

</div>

Oh my god, I’m super pissed off. This issue basically makes Obsidian unreliable. It distorts the inserted content to its own liking and does so in an egregious way.

I make a sublist:

```auto
1. List item
2. List item
   1. Sublist item
   2. Sublist item

```

Obsidian turns 1 and 2 in the sublist into 3 and 4 distorting my intention.

And even if I write it _in code_, the conversion still happens. Even if it’s a JavaScript code!!! This is beyond all things imaginable.

And it’s not even in the reading mode, it gets its way into the source and gets saved into the file in this way! Why this distinction between two modes then?

---

<div class="post-metadata">

**Author:** ![thoroughburro](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thoroughburro/32/30555_2.png) [@thoroughburro](https://forum.obsidian.md/u/thoroughburro)\
**Post date:** [September 10, 2026, 3:00pm UTC](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910/9 "2026-09-10T15:00:35Z")

</div>

### Use case or problem

In code blocks, I often need to type a `#` and hit enter. I do that to produce a `#` and then a `newline`. Instead, I get a `#` and some random word of Obsidian’s choosing. This frequently trips me up.

### Proposed solution

There could be a setting: “disable tag autocomplete”. This is the common solution in other text editors that autocomplete, because popping anything up while one types is disruptive — there must be an option to opt out, or distraction-free writing is impossible.

### Current workaround (optional)

I could probably use a custom CSS snippet to forcibly hide the popup. There is no workaround for non-technical users.
