Coding settings for claude: Difference between revisions
From Genecats
Jump to navigationJump to search
(Created page with " cat /cluster/home/galt/.claude/CLAUDE.md This applies to all of my projects since it is in my home dir. CLAUDE.md can also be at the top level of a project or source directory. If it is checked in it can be shared for the team. CLAUDE.local.md can contain private settings not checked into git. # FYI currently this does not handle functions perfectly # since it indents their bodies too. ## Code Style - C: - Whitesmiths style for control structures (if/else/for/wh...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
CLAUDE.local.md can contain private settings not checked into git. | CLAUDE.local.md can contain private settings not checked into git. | ||
<pre> | |||
# FYI currently this does not handle functions perfectly | # FYI currently this does not handle functions perfectly | ||
# since it indents their bodies too. | # since it indents their bodies too. | ||
| Line 19: | Line 20: | ||
- `_camelCase` for private fields | - `_camelCase` for private fields | ||
- `camelCase` for local variables, parameters | - `camelCase` for local variables, parameters | ||
<pre> | |||
Latest revision as of 22:35, 2 March 2026
cat /cluster/home/galt/.claude/CLAUDE.md This applies to all of my projects since it is in my home dir. CLAUDE.md can also be at the top level of a project or source directory. If it is checked in it can be shared for the team. CLAUDE.local.md can contain private settings not checked into git.
# FYI currently this does not handle functions perfectly
# since it indents their bodies too.
## Code Style
- C:
- Whitesmiths style for control structures (if/else/for/while/switch)
- Function body braces at column 0, not indented
- 4-space indent
- `PascalCase` for classes/methods
- `_camelCase` for private fields
- `camelCase` for local variables, parameters