xw48hf
xw48hf

Reputation: 447

Identation not working with EditorConfig Sublime Text 3

I am using EditorConfig in Sublime Text 3. I have set up the .editorconfig file in my project root directory and it was working fine few months ago.

The indentations looks good in Sublime

Sublime screenshot

But when I push it to GitHub, the same code looks like this

Github screenshot

I removed the EditorConfig via Package Control > Remove Package. Then reinstalled the EditorConfig package. I tried both manual way and installation via Package Control but nothing seems to work. Help me through this!

Upvotes: 4

Views: 4942

Answers (1)

Shiva Poudel
Shiva Poudel

Reputation: 66

Mixed tabs and spaces are causing this error. See the .editorconfig file for tab indentation and look at your code by highlighting all you have written where dotted are spaces and other lines are tabs:

screenshot of code

Upvotes: 4

Related Questions