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

Editor: New Line on XML comments

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

    Editor: New Line on XML comments

    Hello,

    I have been trying every suggestion I found on StackOverFlow but none work. I want this functionality when writing comments:

    /// <summary>

    /// Line1

    /// Line2

    /// </summary>

    The shown text is Line1 Line2 and I want:

    Line1
    Line2

    Thanks for your help!





    #2
    Hello roblogic,

    When you write comments all of the text commented will show up. In what you provided you should see all 4 lines with /// before them. You may be able to use visual studio to display comments sin a different way by using its features or extensions. The general C# file you are viewing in the NinjaScript editor will otherwise show all commented lines. If you only wanted to show the two lines you need to delete the lines containing summary.


    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you. I am referring to the text shown by Intellisense. If I type:

      /// <summary>
      /// Line1
      /// Line2
      /// </summary>​
      int myInt;

      When Typing myInt Intellisense will show Line1 Line2. And I would like to see Line2 not after but below Line1. Like this:
      Line1
      Line2

      So I am asking if there is any tag to add after Line1 to have this new line created. Hope now my question is clearer.

      Comment


        #4
        Hello,

        The intellepromt in the NinjaScript editor is very basic, for this type of commenting I would suggest using visual studio where you can further customize the comments/intellesense.

        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks for your help. My intention is to see the object comments within the NT8 Editor. If I do it with the proper tags within VS and it's working fine in VS, it will still not be shown properly formatted in the NT8 Editor, right?

          Comment


            #6
            Hello roblogic,

            The intellepromt in the NinjaScript editor is very basic and is not the same as using visual studio. If you want to use comments in that way you would need to just use visual studio which has that feature. The NinjaScript editor will just display the three slash comments as you are seeing.


            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ETFVoyageur, 05-07-2024, 07:05 PM
            16 responses
            126 views
            0 likes
            Last Post bltdavid  
            Started by ETFVoyageur, Today, 10:13 PM
            1 response
            5 views
            0 likes
            Last Post ETFVoyageur  
            Started by somethingcomplex, Today, 10:36 PM
            0 responses
            3 views
            0 likes
            Last Post somethingcomplex  
            Started by sofortune, Yesterday, 10:28 AM
            5 responses
            22 views
            0 likes
            Last Post sofortune  
            Started by guyonabuffalo, Today, 10:01 PM
            0 responses
            2 views
            0 likes
            Last Post guyonabuffalo  
            Working...
            X