{"id":48439906,"url":"https://github.com/tensorworks/ue-clang-format","last_synced_at":"2026-04-06T15:01:27.117Z","repository":{"id":38232335,"uuid":"429972466","full_name":"TensorWorks/UE-Clang-Format","owner":"TensorWorks","description":"Unreal Engine Clang-Format configuration and instructions.","archived":false,"fork":false,"pushed_at":"2024-08-20T14:37:00.000Z","size":572,"stargazers_count":134,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-16T19:48:04.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TensorWorks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-20T00:38:05.000Z","updated_at":"2025-07-27T09:03:16.000Z","dependencies_parsed_at":"2022-09-04T23:01:20.392Z","dependency_job_id":null,"html_url":"https://github.com/TensorWorks/UE-Clang-Format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TensorWorks/UE-Clang-Format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensorWorks%2FUE-Clang-Format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensorWorks%2FUE-Clang-Format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensorWorks%2FUE-Clang-Format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensorWorks%2FUE-Clang-Format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TensorWorks","download_url":"https://codeload.github.com/TensorWorks/UE-Clang-Format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensorWorks%2FUE-Clang-Format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31477013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-06T15:01:26.347Z","updated_at":"2026-04-06T15:01:27.112Z","avatar_url":"https://github.com/TensorWorks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![Before and After](./before_after_clang_format.gif)\n\n# Clang Format for Unreal Engine C++\nAutomatically format your Unreal Engine C++ as per [Epic's Coding Standard](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/DevelopmentSetup/CodingStandard/).\n\nThe purpose of this repository is to provide a Clang-Format configuration for Unreal Engine C++ and instructions for how to use it.\n\n## Get the .clang-format file\n[.clang-format file](./.clang-format)\n\n## VS Code\n1. Put the `.clang-format` file in the root of your project (or the engine root if you are working on the engine itself).\n2. As long as you have [Microsoft's C++ extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) installed in VSCode you can now format with `Shift+Alt+F`. (If not, [read here](https://code.visualstudio.com/docs/cpp/cpp-ide#_code-formatting)).\n\n**Optional:** You can enable `format on save` for C++ by adding the following to your `*.code-workspace` file:\n```\n\"settings\": {\n\t\t\"[c++]\": {\n\t\t\t\"editor.formatOnSave\": true\n\t\t}\n\t},\n```\n\n## Visual Studio\n1. Go to the root of you project, `File-\u003eAdd New Item-\u003eClangFormat File`.\n2. Copy+Paste the contents of the .clang-format from this repository into the newly generated `.clang-format` file. \n3. You can now format files with `Ctrl+K+D`\n\n**Optional:** You can enable `format on save` by installing [this extension](https://marketplace.visualstudio.com/items?itemName=mynkow.FormatdocumentonSave).\n\n## Limitations\n1. Method chaining is not supported by clang-format and offers inconsistent results, especially inside of square brackets (`[`, `]`) such as used extensively by Slate.\n2. Single-line lambdas are incompatible with Allman-style brace wrapping and cannot be supported with the currently available ruleset.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorworks%2Fue-clang-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensorworks%2Fue-clang-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorworks%2Fue-clang-format/lists"}