> For the complete documentation index, see [llms.txt](https://dev.ppgg.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ppgg.in/contributing/code-style.md).

# 代码样式

{% hint style="info" %}
对应的[官方页面地址](https://contributing.bitwarden.com/contributing/code-style/)
{% endhint %}

本章节包含用于 Bitwarden 代码库的通用代码样式指南。建议通读本章节，因为它包含许多避免常见陷阱的好建议。

## 通用 <a href="#general" id="general"></a>

### 列表 <a href="#lists" id="lists"></a>

* 当语言支持时，包括多行列表的尾随逗号。内联列表不必遵循此标准。

### 代码区域 <a href="#code-regions" id="code-regions"></a>

* 我们不在代码库中使用代码区域。如果您发现自己需要使用代码区域，请考虑重构代码以使其更具可读性。
