# Code Block Indentation

**URL:** <https://forum.obsidian.md/t/code-block-indentation/43966>\
**Category:** Bug graveyard\
**Created:** [September 25, 2022, 8:13am UTC](https://forum.obsidian.md/t/code-block-indentation/43966 "2022-09-25T08:13:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![efemkay](https://forum.obsidian.md/user_avatar/forum.obsidian.md/efemkay/32/26644_2.png) [@efemkay](https://forum.obsidian.md/u/efemkay)\
**Post date:** [September 25, 2022, 10:07am UTC](https://forum.obsidian.md/t/code-block-indentation/43966/5 "2022-09-25T10:07:23Z")

</div>

There’s similar feature request. Pasting here for cross reference. Also just to add, it’s a workable solution to indent but visually not consistent especially if u have indentation guide/line

> [@Live Preview: Better support of code blocks in lists](https://forum.obsidian.md/t/live-preview-better-support-of-code-blocks-in-lists/31352/5):
>
> i agree, maybe what the editor can do is that detect that code block is being indented and keep the indentation until the closing backticks. anyway, here’s my workaround to make it looks more in place (in case it helps u). i wrote the code block without bullet, and then just indent it (as many time as the bullet depth (first level - one tab, 2nd level - two tab)

---

_[View the full topic](https://forum.obsidian.md/t/code-block-indentation/43966)._
