java
Google Java Style Guide
Official Google Java coding standards for consistent, maintainable code.
Golden Rules
- 2-space indentation — no tabs
- Column limit: 100 characters
- Use
@Overridewhenever applicable - No wildcard imports — import specific types
- Braces required even for single-statement blocks
- One top-level class per file
- Prefer interfaces for type definitions
Quick Reference
Naming Conventions
| Element | Convention | Example |
More from testdino-hq/google-styleguides-skills
shell
Google's official Shell scripting style guide. Covers Bash scripting, naming conventions, error handling, portability, and shell best practices.
3python
Google's official Python style guide extending PEP 8. Covers type annotations, Google-style docstrings, imports, naming conventions, f-strings, comprehensions, and exception handling. Enforces 80-char line length and 4-space indentation.
3google-styleguides-skills
Complete collection of Google's official style guides for 17 languages. Includes TypeScript, JavaScript, Python, Java, Go, C++, C#, Swift, Objective-C, HTML/CSS, AngularJS, Shell, R, Common Lisp, Vim Script, JSON, and Markdown. Production-ready coding standards used across Google's engineering organization, formatted for AI agent consumption.
3cpp
Google's official C++ style guide. Covers headers, naming conventions, formatting, classes, memory management, RAII, smart pointers, and modern C++ features.
2typescript
Google's official TypeScript style guide. Covers strict mode, type annotations, interfaces vs types, null handling, naming conventions, imports, and common mistakes. Enforces explicit return types, readonly properties, and avoidance of any/non-null assertions.
1