I forgot I had this…
I am reposting a recently posted post in my other thread, eh, at least here it will be a collection:
Just throwing this protip out there for the beginners, I have recently started coding apps again, and forgot you can hide lines of commented out code using
{
}
In VS…
Basically:
Method something()
{
{
// some old but still useful code
// some old but still useful code
// some old but still useful code
// some old but still useful code
}
String OtherCodeHere = "SomethingCool";
}
And then just click the +/- sign on the top bracket to hide it all… the one immediately above the commented out code…
I had a typo that caused this to prematurely post lol, trying to indent with Tab key in a browser lol
EDIT
Adding to this, basically, you would find this useful when you need to keep some code present in a method/function but need to try out new code below it or above it but don’t want to keep scrolling or breaking out views.