Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99093

Indentation is corrupted when I post a file to GitHub, when it looks OK in Notepad++ and VS Code

$
0
0

I have some weird issue: It's not very important, but I want my code to look nice on GitHub.

I've implemented MergeSort in AEC, and I posted it to GitHub, you can see it here.
However, the indentation doesn't look the same as it does in Notepad++ or VS Code, here is how the lines 101-107 look if I open that file in Notepad++:

How it looks in Notepad++

I don't expect syntax highlighting to work on GitHub, the syntax highlighting for AEC works in Notepad++ because I opened the Notepad++ script to highlight AEC code.
However, I would expect the indentation to look the same whether it's on GitHub or in a text editor.
So, why it doesn't?


Viewing all articles
Browse latest Browse all 99093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>