Skip to content

Instantly share code, notes, and snippets.

@sahara-ooga
Created August 17, 2021 14:18
Show Gist options
  • Save sahara-ooga/8ed4d0623c115b0c0be544382d85aa03 to your computer and use it in GitHub Desktop.
Save sahara-ooga/8ed4d0623c115b0c0be544382d85aa03 to your computer and use it in GitHub Desktop.
Swift format configuration

In root directory of project:

% swift-format -m dump-configuration > .swift-format.json 
% code .swift-format.json

configure indentation in .swift-format.json:

...
  "indentation" : {
-    "spaces" : 2  
+    "spaces" : 4
  },
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment