Could you please help me to hide the summary comments when I press F12 (Go to definition) in Visual Studio Code? I do not want to see summary comments as they are too long.
Could you please help me see only declarations of classes, methods, eg but not summary comments? There is the screen when I press F12 on int.
The summary comments are helpful metadata in the assembly. If you open it in Visual Studio 2019/2017 etc, it is feasible to collapse them.
However, it seems impossilbe to collapse the summary to definitions in VS code. I tried it in vain before long.
Because the summaries are embeded in the assembly(the *.dll file), it is impossible to removed them. Even it is open via F12, it is readonly.
You can try with the following keyboard shortcut:
Ctrl + M + O
If you want to expand again you can use Ctrl + M + L
Alternatively you can try: Edit > Outlining > Collapse to Definitions
You can check for more similar shortcuts here: https://docs.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.