56
kappekp
6y

void main ()
{
//Not working code
Also not working code
}

Comments
  • 0
    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. :-)
  • 1
    @Fast-Nop Does you IDE not have some kind of "ctrl-/", or like ctrl-v-move-shift-i-//-esc in vim?
  • 0
    @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.
  • 1
    VS 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.
  • 0
    @Fast-Nop @bittersweet
    What languages are you guys using where you can't multi-line comment?? (/* */)
  • 0
    @qwerty77asdf counter question: what happens when you try that with code blocks where there are already comments in /* format */?
  • 2
    @Fast-Nop ah ok, fair enough.

    Typically I'd do commenting out for testing with /**/ and for documentation with //
  • 1
    Hahahaha yeah, temporarily. ;-)
Add Comment