opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Support for global .clang-format file

Open Bix3 opened this issue 2 weeks ago • 1 comments

If a user has no .clang-format file in the worktree but one in the home dir for example then clang format is not ran in the current state.

https://github.com/anomalyco/opencode/blob/a7cae8f674071a103db0c254ff01dbec19111e8a/packages/opencode/src/format/formatter.ts#L157

Bix3 avatar Jan 15 '26 23:01 Bix3

This issue might be a duplicate of existing issues. Please check:

  • #1482: opencode ran my code through an auto-formatter? - Users experiencing unexpected auto-formatting when no config is present
  • #8387: On file edit it is also formatted - Related to unwanted formatting during edits

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 15 '26 23:01 github-actions[bot]