How to disable autodetect text files in Xcode 6

I am using a text file (History.txt) for notes and track my changes. Xcode 6 applies indentation rules to all files and so manual formatting (using tabs) in a text file changes as you type in a line or copy and paste. For example, typing a semicolon causes the string to be left-justified with leading spaces. Previous versions of Xcode did not do this.

I must have autoindent for source code files.

How can I tell Xcode 6 to leave my .txt files alone (no auto indentation)?

+3


source to share


1 answer


I had the same problem. Didn't find the right solution, but the workaround is to turn off the auto indent feature (under Settings -> Text Editing -> Indentation) for specific characters that you use a lot in text files (in my case, the colon character was the main culprit) and that you can learning to live without automatic indentation when actually editing code. This is a decent way to get around this problem.



+2


source







All Articles