I’m working on a new app that has large areas I would like to comment out while I work on different parts of the page.
Is there a way to collapse the commented areas in Visual Studio 2010 in a c# razor file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can!
Select the code/comments or what ever you want to collapse…
Then, right click and choose Collapse Tag.
The only drawback is that it doesn’t persist. As soon as you close the view it won’t be there when you re-open it.
The only other suggestion I could make is separate parts that you’re working on into Partial Views. That way you can work on smaller pieces and won’t have to worry about collapsing anything.