4 ms·
I like this for C/C++: #if 1 // or 0 A #else B #endif This can even be nested.
by FartyMcFarter 7y ago
I like this for C/C++:
#if 1 // or 0
A
#else
B
#endif
This can even be nested.
- ncmncm 7y agoThis is so overwhelmingly better in every conceivable way that there is no excuse for ever using the other thing. (Unless you are using Rust and don't have it?)
- klyrs 7y agoYeah, that's good too. When I don't need nesting, I like toggleable comments because the inactive block gets grayed out.
- FartyMcFarter 7y agoSome editors like vim also grey out the text with "#if".