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 Kaiviti57, Today, 04:13 AM
        0 responses
        1 view
        0 likes
        Last Post Kaiviti57  
        Started by Cross161, Yesterday, 10:33 PM
        0 responses
        10 views
        0 likes
        Last Post Cross161  
        Started by neilzep, Yesterday, 08:55 PM
        0 responses
        8 views
        0 likes
        Last Post neilzep
        by neilzep
         
        Started by javier.filgueira, Yesterday, 03:29 PM
        3 responses
        11 views
        0 likes
        Last Post javier.filgueira  
        Started by Da vinci, Yesterday, 03:15 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X