Skip to content

Conversation

@yurekami
Copy link
Contributor

Summary

Add .editorconfig to ensure consistent coding style across different editors and IDEs.

Configuration includes:

  • Encoding: UTF-8 for all files
  • Line endings: LF (Unix-style) for all files
  • Python/C++/CUDA/Shell: 4-space indentation
  • YAML/CMake/JSON: 2-space indentation
  • Makefiles: Tab indentation (required)
  • Markdown: Preserves trailing whitespace (needed for line breaks)
  • All files: Final newline insertion, trailing whitespace trimming

Benefits

  • Ensures contributors use consistent settings regardless of their editor
  • Reduces unnecessary whitespace changes in diffs
  • Supported natively by most modern editors (VS Code, JetBrains IDEs, Vim, etc.)

See https://editorconfig.org for more information.

Test plan

  • Validate EditorConfig syntax
  • Verify settings work in VS Code
  • Verify settings work in other editors

🤖 Generated with Claude Code

Add .editorconfig to ensure consistent coding style across different
editors and IDEs. Configures:

- UTF-8 encoding and LF line endings for all files
- 4-space indentation for Python, C++/CUDA, shell scripts
- 2-space indentation for YAML, CMake, JSON
- Tab indentation for Makefiles
- Trailing whitespace trimming (except Markdown)
- Final newline insertion

Most modern editors support EditorConfig natively or via plugins.
See https://editorconfig.org for more information.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@zheanxu zheanxu closed this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants