{"id":18441,"date":"2017-07-21T14:41:13","date_gmt":"2017-07-21T18:41:13","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18441"},"modified":"2017-07-21T14:41:13","modified_gmt":"2017-07-21T18:41:13","slug":"customizing-the-file-header-comment-and-other-text-macros-in-xcode-9","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/07\/21\/customizing-the-file-header-comment-and-other-text-macros-in-xcode-9\/","title":{"rendered":"Customizing the File Header Comment and Other Text Macros in Xcode 9"},"content":{"rendered":"<p><a href=\"https:\/\/oleb.net\/blog\/2017\/07\/xcode-9-text-macros\/\">Ole Begemann<\/a> (<a href=\"https:\/\/twitter.com\/olebegemann\/status\/888111926772813826\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/oleb.net\/blog\/2017\/07\/xcode-9-text-macros\/\"><p>Xcode 9 allows you to customize the file header and other so-called text macros using a plist file. The process is described in Xcode Help on a page titled <em>Customize text macros<\/em>.<\/p>\n<p>[&#8230;]<\/p>\n<p>See <a href=\"https:\/\/oleb.net\/blog\/2017\/07\/xcode-9-text-macros\/#text-macros-reference\">Text macros reference below<\/a> for a full list of available macros. You can use other text macros in your value by wrapping them with three underscores, such as <code>___DATE___<\/code>. See <a href=\"https:\/\/oleb.net\/blog\/2017\/07\/xcode-9-text-macros\/#text-macro-format-reference\">Text macro format reference below<\/a>.<\/p><\/blockquote>\n<p>Previously, you had to <a href=\"https:\/\/stackoverflow.com\/questions\/33720\/change-templates-in-xcode\">edit various template files<\/a> or use <tt>defaults write<\/tt>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ole Begemann (tweet): Xcode 9 allows you to customize the file header and other so-called text macros using a plist file. The process is described in Xcode Help on a page titled Customize text macros. [&#8230;] See Text macros reference below for a full list of available macros. You can use other text macros in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","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":[649,31,30,71,226],"class_list":["post-18441","post","type-post","status-publish","format-standard","hentry","category-technology","tag-esoteric-preferences","tag-ios","tag-mac","tag-programming","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18441","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=18441"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18441\/revisions"}],"predecessor-version":[{"id":18442,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18441\/revisions\/18442"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}