News for hackers. Stuff that matters.
Re:The //* /*/ //*/ comment toggle trick by redact207 on Monday April 29, 2013 @10:35AM (#5626391)
Agreed, use pre-compiler commands like this.

Alternatively if you don't need to check in your comments then your IDE should have a "comment selection" option (CTRL K, C chord in VS)

Re:The //* /*/ //*/ comment toggle trick by jkubicek on Monday April 29, 2013 @10:04PM (#5630051)
The disadvantage of using pre-compiler commands is that some IDEs (Xcode specifically, perhaps they all do this) don't color disabled code any differently, so at a glance you can't tell that the code block won't run.

Before a commit I'll sweep through and delete the intermediate code blocks that I've commented out. If I use pre-compiler flags to comment out the code, it's easy to miss it in the sweep. Because of this I never use the pre-compiler flags for something I don't want to get committed.

Re:The //* /*/ //*/ comment toggle trick by Arzh on Monday April 29, 2013 @11:13AM (#5626656)
I like remapping 'comment' to ctrl-Q and 'uncomment' to shift-ctrl-Q. Makes for really quick editing of code while using the mouse.
Re:The //* /*/ //*/ comment toggle trick by kragen on Monday April 29, 2013 @02:53PM (#5627944)
Emacs's is M-;.
Re:The //* /*/ //*/ comment toggle trick by __david__ on Monday April 29, 2013 @03:37PM (#5628181)
Oh, nice! I've been using C-c C-c but it doesn't work in every programming mode.