Click here to Skip to main content
15,846,976 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
visual studio community on cshtml page when collapse some part and if i press enter the previous one expand

What I have tried:

Disable Auto-Collapse: Visual Studio might be configured to automatically collapse sections of code. You can disable this feature by going to Tools > Options > Text Editor > [Your Language] > Advanced and unchecking the "Enter Outlining mode when files open" option.

Check Extensions: If you have any extensions or plugins installed, they might be causing this behavior. Disable them one by one to see if any of them are the culprit.

Update Visual Studio: Ensure that you're using the latest version of Visual Studio Community. Sometimes, these issues are resolved in newer updates.

Reopen the File: If this behavior persists, try closing and reopening the CSHTML file. Sometimes, it's just a temporary glitch.

Restart Visual Studio: A simple restart of Visual Studio can often resolve unexpected behavior.
from chatGPT

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900