# 代码样式

{% 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>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ppgg.in/contributing/code-style.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
