For some reason my indentation isn't working as expected. I have set it to indent using 4 spaces but for some reason it indents with 2 spaces everywhere in the project. I've tried going on Xcode > System Settings > Text Editing > Indentation Tab. I've also quit Xcode and deleted derived data to no success. I have swiftlint, but nothing in it is about indentation.
I'm stuck. Would love some help.
Screenshot of my text settings in file:
Screenshot of Text Editing > Indentation Tab:
For some reason my indentation isn't working as expected. I have set it to indent using 4 spaces but for some reason it indents with 2 spaces everywhere in the project. I've tried going on Xcode > System Settings > Text Editing > Indentation Tab. I've also quit Xcode and deleted derived data to no success. I have swiftlint, but nothing in it is about indentation.
I'm stuck. Would love some help.
Screenshot of my text settings in file:
Screenshot of Text Editing > Indentation Tab:
Share Improve this question edited yesterday JasLamba asked yesterday JasLambaJasLamba 291 silver badge7 bronze badges 8 | Show 3 more comments1 Answer
Reset to default -1Locate the .editorConfig
file and ensure your indent value is correctly set there. Make sure that you check root of your project directory.
.editorConfig
file in your project? – HangarRash Commented yesterday