# 如何制作一个TAB缩进（8个空格）？

**URL:** <https://meta.discourse.org/t/how-do-you-make-a-tab-indentation-8-spaces/392574>\
**Category:** Support\
**Created:** [2026年一月2日 20:20 UTC](https://meta.discourse.org/t/how-do-you-make-a-tab-indentation-8-spaces/392574 "2026-01-02T20:20:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2026年一月2日 23:59 UTC](https://meta.discourse.org/t/how-do-you-make-a-tab-indentation-8-spaces/392574/4 "2026-01-02T23:59:53Z")

</div>

要么使用 `&nbsp;` 或任何不被修剪的类似空格的字符。然后，如果你打算经常使用这些缩进，你可以创建一个用户脚本，用键盘快捷键插入它们。  
我有一个脚本，可以在按下 meta 键时插入或用 `<kbd></kbd>` 包装我的选择，这非常方便 :chefs_kiss:

在 Markdown 中，三个空格会被修剪，而四个空格会创建一个代码块，所以实现你想要的功能没有太多选择。要么使用上述的“黑客”方法，要么如果你有预算或知道如何编码，可以使用自定义组件/插件。

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-make-a-tab-indentation-8-spaces/392574)._
