Programming

How To Fix GitHub’s Weird Issue With Wrong Indentation

Switch from tabs to spaces

github indentation wrong
Source: the author

You might know the pain with an indentation on GitHub like in the above picture. In your editor, your code looks great. Then you push it to a GitHub repo, and suddenly, the indentation is messed up.