You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need some help from other developers? Add your repositories on IssueHunt to raise funds.
IssueHunt has been backed by the following sponsors. Become a sponsor
Reacted by Sindre Sorhus, fregante, Alexander Botteram, Bradley Weston, Wiktor Walc, Alan Villa, kdayri, Scott Hutcheson, Nathan Hinchey, lvrpl and 35 more
Would be super useful. I think we should just do it by default without an option. Diffs are all about seeing changes, and whitespace characters are part of that.
Activity
sindresorhus commentedon Jul 7, 2017
Would be super useful. I think we should just do it by default without an option. Diffs are all about seeing changes, and whitespace characters are part of that.
fregante commentedon Jul 7, 2017
I'm not sure I want to see poor code whenever I browse.
However it does make sense in diffs and CodeMirror. Perhaps this can be achieved with a custom font.
sindresorhus commentedon Jul 7, 2017
Oh, I assumed this was about diffs only. I agree, only makes sense in diffs and CodeMirror.
fregante commentedon Jul 27, 2017
Tabs in CodeMirror have their own element, however spaces don't :(
https://codemirror.net/demo/visibletabs.html
fregante commentedon Aug 24, 2017
Related content around the web, unfortunately not very positive:
I created a font with
fontelloand:In short: this has to be built in JS. If we can access CodeMirror's instance there's a plugin for that https://github.com/coderaiser/cm-show-invisibles
bweston92 commentedon Oct 20, 2017
BitBucket do this quite well with an option to show whitespace.


Then you get to see faint dots like:
fregante commentedon Oct 20, 2017
Where are you seeing that? I can't find it anywhere in my BB repos.
bweston92 commentedon Oct 20, 2017
@bfred-it hmm it is on private BitBucket server (without addons) maybe BitBucket Cloud is different.
tallen1983 commentedon Jan 16, 2018
https://github.com/Mottie/GitHub-userscripts/wiki/GitHub-code-show-whitespace seems to work for me. Perhaps the author will let the plugin pull it in?
jdreesen commentedon Jan 16, 2018
https://github.com/glebm/render-whitespace-on-github shows whitespace in file and diff view, but not in codemirror (afaik).
tallen1983 commentedon Jan 17, 2018
https://groups.google.com/forum/m/#!topic/codemirror/L2EJ8Bs3mGA seems to imply it can be done with their specialChars option. That in combination with the script I posted above would solve both, I think.
IssueHuntBot commentedon Apr 11, 2019
@IssueHunt has funded $80.00 to this issue.
issuehunt-oss commentedon Oct 31, 2019
@sindresorhus has rewarded $72.00 to @notlmn. See it on IssueHunt