{"id":44666,"date":"2024-08-29T15:19:14","date_gmt":"2024-08-29T19:19:14","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=44666"},"modified":"2024-08-29T15:19:52","modified_gmt":"2024-08-29T19:19:52","slug":"editorconfig-files-in-xcode","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/08\/29\/editorconfig-files-in-xcode\/","title":{"rendered":"EditorConfig Files in Xcode"},"content":{"rendered":"<p><a href=\"https:\/\/www.polpiella.dev\/xcode-editor-config\/\">Pol Piella<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.polpiella.dev\/xcode-editor-config\/\">\n<p>As a developer for Apple platforms, you probably work on multiple projects with different coding styles and conventions and have to find yourself adjusting Xcode&rsquo;s editor settings every time you switch between projects. This can be a tedious process that you might forget to do or overlook and, if the project does not have a linter that enforces the coding style, you might end up with inconsistent code formatting across the codebase.<\/p>\n<p>Thankfully Xcode 16 adds support for <a href=\"https:\/\/editorconfig.org\/\">EditorConfig<\/a> files, which allows you to define Xcode editor settings in a programmatic way on a per-project basis. In this article, you will learn how to set up EditorConfig files in Xcode and what settings are supported at this time.<\/p>\n<\/blockquote>\n<p>They also work <a href=\"https:\/\/www.barebones.com\/support\/technotes\/editorconfig.html\">in BBEdit<\/a>.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/07\/17\/xcode-16-announced\/\">Xcode 16 Announced<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Pol Piella: As a developer for Apple platforms, you probably work on multiple projects with different coding styles and conventions and have to find yourself adjusting Xcode&rsquo;s editor settings every time you switch between projects. This can be a tedious process that you might forget to do or overlook and, if the project does not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-08-29T19:19:16Z","apple_news_api_id":"5e6de3e1-6037-47de-be63-daef97526358","apple_news_api_modified_at":"2024-08-29T19:19:54Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AXm3j4WA3R96-Y9rvl1JjWA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[154,30,2598,71,68,226],"class_list":["post-44666","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bbedit","tag-mac","tag-macos-15-sequoia","tag-programming","tag-texteditor","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=44666"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44666\/revisions"}],"predecessor-version":[{"id":44668,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/44666\/revisions\/44668"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=44666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=44666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=44666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}