Google 开源项目风格指南 (中文版)
Go to file
Zecyel db5ea488e7
docs: fix typo in magic.rst
revise "uniqued_ptr" into "unique_ptr"
2024-05-22 19:17:22 +08:00
google-cpp-styleguide docs: fix typo in magic.rst 2024-05-22 19:17:22 +08:00
google-html-css-styleguide 添加《HTML/CSS 风格指南》的目录 2023-04-17 01:12:44 -07:00
google-java-styleguide Update: add javadoc, fix some ref error 2023-10-15 13:25:06 +08:00
google-javascript-styleguide 📝 TypeScript 风格指南:语法规范。 2021-08-08 23:03:25 +08:00
google-objc-styleguide Modify RST code-block syntax error 2019-03-20 16:07:14 +08:00
google-python-styleguide 修订 Python 风格规范 2024-02-13 22:18:59 -08:00
google-shell-styleguide Merge pull request #110 from imba-tjd/patch-1 2020-08-13 22:16:40 +08:00
google-typescript-styleguide [TypeScript] introduction. 2024-02-29 17:26:25 +08:00
.gitignore 🚧 TypeScript style guide: introduction. 2021-08-08 04:02:04 +08:00
.readthedocs.yaml try to generate pdf and epub version. 2024-03-01 13:44:48 +08:00
conf.py seems that read-the-docs has changed their default themes, try to fix it. 2024-03-01 11:58:14 +08:00
contents.rst Add Java styleguide 2023-09-28 20:09:31 +08:00
index.rst merge index.rst and README.rst 2012-08-16 09:40:36 +08:00
make.bat switch to github 2012-07-17 12:45:38 +08:00
Makefile switch to github 2012-07-17 12:45:38 +08:00
manually-generate-pdf-document.md Update: add javadoc, fix some ref error 2023-10-15 13:25:06 +08:00
README.rst Update README.rst 2023-06-06 17:28:41 +08:00
requirements.txt seems that read-the-docs has changed their default themes, try to fix it. 2024-03-01 11:58:14 +08:00

Google 开源项目风格指南——中文版

Note

声明

本项目并非 Google 官方项目,而是由国内程序员凭热情创建和维护。

如果你关注的是 Google 官方英文版,请移步 Google Style Guide

每个较大的开源项目都有自己的风格指南:关于如何为该项目编写代码的一系列约定(有时候会比较武断)。当所有代码均保持一致的风格,在理解大型代码库时更为轻松。

“风格”的含义涵盖范围广从“变量使用驼峰格式camelCase”到“决不使用全局变量”再到“决不使用异常”等等诸如此类。

英文版项目维护的是在 Google 使用的编程风格指南。如果你正在修改的项目源自 Google你可能会被引导至英文版项目页面以了解项目所使用的风格。

我们已经发布了七份 中文版 的风格指南:

  1. Google C++ 风格指南
  2. Google Objective-C 风格指南
  3. Google Python 风格指南
  4. Google JavaScript 风格指南
  5. Google Shell 风格指南
  6. Google JSON 风格指南
  7. Google TypeScript 风格指南

中文版项目采用 reStructuredText 纯文本标记语法,并使用 Sphinx 生成 HTML / CHM / PDF 等文档格式。