• 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 cynthia, Today, 12:05 AM
        0 responses
        3 views
        0 likes
        Last Post cynthia
        by cynthia
         
        Started by Jonathan.Lee, Yesterday, 11:42 PM
        1 response
        9 views
        0 likes
        Last Post Jonathan.Lee  
        Started by DTSSTS, Yesterday, 10:14 PM
        0 responses
        3 views
        0 likes
        Last Post DTSSTS
        by DTSSTS
         
        Started by babouin77, Yesterday, 08:56 PM
        0 responses
        8 views
        0 likes
        Last Post babouin77  
        Started by JTizz, Yesterday, 04:56 PM
        0 responses
        17 views
        0 likes
        Last Post JTizz
        by JTizz
         
        Working...
        X