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
-
Problem is that disabling code via comments doesn't work when there are comments in it, and preceding every single line with // is work.
"#if 0" to the rescue. :-) -
@Fast-Nop Does you IDE not have some kind of "ctrl-/", or like ctrl-v-move-shift-i-//-esc in vim?
-
@bittersweet Notepad++ does support this indeed, but I've never cared to rely on that because I'm working in several IDEs and can't be bothered to figure out their individual ways of doing stuff.
-
p100sch14466yVS does support commenting out every selected line and you can choose if you want to memorize or set the shortcut or simply use the button in the toolbar.
-
@Fast-Nop @bittersweet
What languages are you guys using where you can't multi-line comment?? (/* */) -
@qwerty77asdf counter question: what happens when you try that with code blocks where there are already comments in /* format */?
-
@Fast-Nop ah ok, fair enough.
Typically I'd do commenting out for testing with /**/ and for documentation with //
Related Rants
void main ()
{
//Not working code
Also not working code
}
joke/meme
coding
meme