• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

To group code lines together

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    To group code lines together

    Hello. How to group code lines together? To get opportunity to click on "+" near lines numbers and to open or close group of lines.

    #2
    Hello Alex,

    Thank you for your post.

    You can use the #region and #endregion for this item. For example:
    Code:
    			#region SayHi
    			Print("Hello there!");
    			#endregion
    This will show as just SayHi when collapsed.

    For information on #region and #endregion please visit the following link: http://msdn.microsoft.com/en-us/library/9a1ybwek.aspx

    Please let me know if I may be of further assistance.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      What about "///" with "<summary>". I saw such in samples code.

      Comment


        #4
        Hello Alex,

        Thank you for your response.

        That will work for comments if you wish to collapse them.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cociahange, Today, 03:53 AM
        0 responses
        1 view
        0 likes
        Last Post cociahange  
        Started by dukeoferl, Today, 03:26 AM
        0 responses
        1 view
        0 likes
        Last Post dukeoferl  
        Started by Titelluvifa, Today, 02:49 AM
        0 responses
        2 views
        0 likes
        Last Post Titelluvifa  
        Started by rehagen, Today, 01:44 AM
        0 responses
        2 views
        0 likes
        Last Post rehagen
        by rehagen
         
        Started by bouncetherubble, Yesterday, 07:33 PM
        0 responses
        7 views
        0 likes
        Last Post bouncetherubble  
        Working...
        X