Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suggested Feature: NinjaScript Editor

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

    Suggested Feature: NinjaScript Editor

    With tens of thousands of lines of code, one invariably has many (many!) code regions defined (#region/#endregion). When in the editor, I find myself very frequently expanding/collapsing multiple regions, particularly when first opening an existing large source file for editing.

    I would love to see the editor support a way of reducing the tedious overhead of finding and clicking dozens of region collapse/expand boxes in the margin.

    I immediately think of Microsoft Excel and its ability to quickly collapse/expand any number of nested levels of rows/columns using the elegantly simple concept of numbered levels, displayed as clickable boxes that expand/collapse to the level clicked.

    One could even consider just four buttons: Expand All, Collapse All, Expand One Level, Collapse One Level. That would certainly be sufficient as a basic implementation.

    Such a feature in the NinjaScript editor would make coding so much easier/safer/focussed and save me (and many others, I'm sure) a large amount of clicking, not to mention boredom/frustration in the doing of it.

    For your consideration, with thanks, as always! (And, of course, my apologies if such wonders already exist and I missed them.)
    Last edited by jeronymite; 06-27-2015, 12:16 AM. Reason: More ideas. [Oh no. I did it again. I meant to post to General Discussion. Apologies!]

    #2
    Hello jeronymite,

    Thank you for your post.

    I will forward along your suggestions.

    Comment


      #3
      Hello jeronymite,

      Thank you for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # SFT-488.

      Comment


        #4
        #region

        Yes...

        NT8 does not use correct #region adnd this is very annoying when you code.
        #region is nothing more than a mean to structure mentally your code; once you cannot do this, you're suffering from double mental concentration effort.

        Painful...

        Comment


          #5
          Hello nientenickgraze,

          Thank you for your post.

          #region and #endregion should be working as they did in NinjaTrader 7. Can you provide an example of how these are not working as expected?

          Comment


            #6
            "Expand All, Collapse All, Expand One Level, Collapse One Level."

            I would like to add my vote for this. And by default, neither compiling nor changing the text of the file should change the collapse state of regions.

            In NT8, the editor expands regions just because you insert, change or delete a single character in some situations (I believe it's on the first such change after saving/compiling.)

            In NT7, compiling collapses all regions in the case of indicators, but leaves regions as they were in the case of strategies.

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello nientenickgraze,

              Thank you for your post.

              #region and #endregion should be working as they did in NinjaTrader 7. Can you provide an example of how these are not working as expected?
              In NT8, the editor expands regions if one changes anything.

              In NT7, compiling collapses all regions, in the case of indicators, but not in the case of strategies.

              Comment


                #8
                Hello,

                Thank you for your additional comments.

                I will forward these votes along.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by mattdowns1234, Today, 06:57 PM
                0 responses
                14 views
                0 likes
                Last Post mattdowns1234  
                Started by dgee949, Today, 06:26 PM
                0 responses
                24 views
                0 likes
                Last Post dgee949
                by dgee949
                 
                Started by dgee949, Today, 05:58 PM
                0 responses
                30 views
                0 likes
                Last Post dgee949
                by dgee949
                 
                Started by thepcmd, Today, 05:14 PM
                0 responses
                34 views
                0 likes
                Last Post thepcmd
                by thepcmd
                 
                Started by xmess777, Today, 04:58 PM
                0 responses
                23 views
                0 likes
                Last Post xmess777  
                Working...
                X