Share via


How to enable outlining in Visual Studio 2015 Enterprise C# projects?

Question

Saturday, July 29, 2017 3:21 PM

Recently I attempted to collapse large blocks of code, but I noticed that I can't do that, because neither [+] nor [-] boxes appear in the code.

However I do have these collapsible and expandable boxes in C++ projects, unlike C#

I have checked out the Tools settings immediately, but Outlining I see only under Text Editor => C++ => View, but not under C#.

I understood that this is missing extension that I must download and install.

I have already downloaded and installed CSharpOutline.vsix, but I didn't see any change.

Please help me with this problem or else I won't create Visual C# projects in Visual Studio 2015 Enterprise anymore, and all the existing C# projects will be discontinued and deleted after restarted in C++/CLI.

Outlining is essential and necessary for me.

It very helps me to deal with large blocks of code.

All replies (5)

Monday, July 31, 2017 6:34 AM ✅Answered | 1 vote

Hi friend,

I have checked this default behavior of C# applications in my VS enterprise 2015 with update 3 and default the outline works fine.

Please go to Tools > Options… > Text Editor > C# > Advanced > Outlining and make sure the option “Enter outlining mode when files open” already checked as below, the setting location is different with C++ that you found.

If it is already checked, please go to Control Panel—Programs and Features, right click the VS 2015 and Change-Repair to repair it.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Saturday, July 29, 2017 10:30 PM

>I have already downloaded and installed CSharpOutline.vsix, but I didn't see any change.

Have you restarted VS2015 since installing it?


Sunday, July 30, 2017 5:31 PM

>I have already downloaded and installed CSharpOutline.vsix, but I didn't see any change.

Have you restarted VS2015 since installing it?

Yes, I did, but still didn't see any change.


Sunday, July 30, 2017 10:11 PM

I have already downloaded and installed CSharpOutline.vsix, but I didn't see any change.

Have you restarted VS2015 since installing it?

Yes, I did, but still didn't see any change.

Dunno then, it worked well for me with 2015.

FWIW I've just realised that it's not needed with VS2017 - the built-in outliner works with C# now.

Dave


Tuesday, August 1, 2017 3:27 PM

Hi friend,

I have checked this default behavior of C# applications in my VS enterprise 2015 with update 3 and default the outline works fine.

Please go to Tools > Options… > Text Editor > C# > Advanced > Outlining and make sure the option “Enter outlining mode when files open” already checked as below, the setting location is different with C++ that you found.

If it is already checked, please go to Control Panel—Programs and Features, right click the VS 2015 and Change-Repair to repair it.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]

Thank you! It worked!