Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Max238, Today, 01:28 AM
        2 responses
        26 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by Shansen, 08-30-2019, 10:18 PM
        25 responses
        949 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        8 responses
        41 views
        0 likes
        Last Post JonesJoker  
        Started by timko, Today, 06:45 AM
        0 responses
        3 views
        0 likes
        Last Post timko
        by timko
         
        Started by Waxavi, 04-19-2024, 02:10 AM
        2 responses
        39 views
        0 likes
        Last Post poeds
        by poeds
         
        Working...
        X