Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
MaccaMc5528yI personally find white space helps code readability. Nobody wants to read code that is all crammed together.
-
skonteam9628y@MaccaMc what you are referring to are empty lines, what is highlighted is whitespaces in empty line aka spaces and tabs ending with \n .
-
@MaccaMc the empty line isn't what's highlighted, it's extra spaces in that line. If those spaces are deleted then the empty line will still be there and not highlighted.
-
@Elandor coding directly on a RasPi? I use JetBrains on my main computer and deploy the code to my RasPi when I want to change code ;)
-
milaniez78yvim does the same thing, more configurable actually:
" Show all tabs:
/\t
" Show trailing whitespace:
/\s\+$
" Show trailing whitespace only after some text (ignores blank lines):
/\S\zs\s\+$
" Show spaces before a tab:
/ \+\ze\t
From vim.wikia -
garrettw2648y@Elandor oh interesting. It's been so long since I last touched C that I didn't remember it having arrow "->" operators or "0b" binary notation.
Related Rants
I like how nano not only shows you unnecessary whitespaces, it throws them in your face and and screams "YOU SEE THAT? WHAT IS THIS SHIT? DELETE THIS DISGRACE TO CLEAN INDENTED CODE!"
undefined
indenting
nano