Try and set the indent style to whatever is in the file being edited.