---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://ytsaurus.tech/docs/en/flow/contributor/style-guide.md
  - https://ytsaurus.tech/docs/ru/flow/contributor/style-guide.md
  - href: https://ytsaurus.tech/docs/en/flow/contributor/style-guide.md
    type: text/markdown
    title: Markdown version
  - href: https://ytsaurus.tech/docs/en/llms.txt?revision=d1460a800885385aa850a1578c0d21951c4247ed
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://ytsaurus.tech/docs/en/llms.txt?revision=d1460a800885385aa850a1578c0d21951c4247ed

<!-- source: en/_includes/flow/contributor/style-guide.md -->
# YTsaurus Flow Style guide

You can find the general rules in the [YTsaurus C++ Style Guide](https://github.com/ytsaurus/ytsaurus/tree/main/yt/styleguide/cpp.md).

You can use clang-format for auto-formatting, but you need to review the result and find a balance between the zero-diff linter and common sense.

To run it:

`ya style --cpp-yt <your_file/directory>`
<!-- endsource: en/_includes/flow/contributor/style-guide.md -->