简体   繁体   中英

Is there a #pragma mark (objective c) equivalent in Visual Studio

I tried searching for this, but all I could land up with is #region .

This helps in traversing through the class, but the method pop up menu does not show the tag.

Is there anyway we can list specific methods under a heading in method pop up of a class in visual studio?

EDIT 1: In x-code suppose I have 10 methods (methods 1, method 2, method 3...method 10). When I write #pragma mark - XYZ before method 1, & then #pragma mark - FOO before method 8 the method pop up groups methods 1 to 7 under XYZ & then methods 8 to 10 under FOO .

This makes traversing through the class easier. Also its much easier to maintain.

Does visual studio have anything similar?

EDIT 2:

Added image. Thus in the image Initialization , Table Management & Managing Views form a group and are put under a similar #pragma mark .

在此处输入图片说明

Have you tried hitting 3 / on the line before the method? that typically auto-inserts syntax to describe a method that appears in the mouse-over popup.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM