Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript Editor #region #endregion Features requests

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

    Ninjascript Editor #region #endregion Features requests

    Can this be implemented to the Ninjascript Editor?

    Adding this function to the F2 (Insert Snippet) Menu:

    region MYREGION

    #endregion

    #2
    Originally posted by PaulMohn View Post
    Can this be implemented to the Ninjascript Editor?

    Adding this function to the F2 (Insert Snippet) Menu:

    region MYREGION

    #endregion
    Hello PaulMohn,

    Thanks for your feedback.

    We have submitted this as a feature request to the Development Team and will follow up with an internal tracking number for your reference as soon as it is created.

    In the meantime, as a workaround, you could consider saving your clipboard history in Windows and pin frequently used items to be pasted from your clipboard. You may access your clipboard via the Windows button + V as mentioned on the following publicly available page from the Microsoft website:
    Learn how to use and troubleshoot the clipboard in Windows to paste multiple items, pin items, and sync your clipboard to the cloud.


    Thanks in advance for your patience.

    Comment


      #3
      Thanks Emily for the reference.

      I had heard of some clipboard features
      Clipboard Master v2 - Free Clipboard Management Program - Save your clips for later use.


      Clipboard Master quick demo


      It would be more convenient to work from the Ninjascript Editor, no back and forth for those repetitive functions.

      Comment


        #4
        This works for me:
        Code:
        <?xml version="1.0" encoding="utf-8" ?>
        <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
            <CodeSnippet Format="1.0.0">
                <Header>
                    <Title>Region</Title>
                    <Shortcut>Rgn</Shortcut>
                    <Description>Builds a skeleton Region</Description>
                    <Author>Mizpah Software</Author>
                    <SnippetTypes>
                        <SnippetType>Expansion</SnippetType>
                    </SnippetTypes>
                </Header>
                <Snippet>
                    <Declarations>
                    </Declarations>
                    <Code Language="csharp">
        <![CDATA[#region --- xxx ---
        
        #endregion --- xxx ---]]>
                    </Code>
                </Snippet>
            </CodeSnippet>
        </CodeSnippets>​
        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment


          #5
          Originally posted by jeronymite View Post
          This works for me:

          Thanks.
          Thanks that worked well.

          NinjaTrader_Emily can this snippet be added to the default Ninjatrader installer, so we don't need to mind it for updates?
          And/or get the updates not to overwrite/delete user added snippets?

          C:\Program Files\NinjaTrader 8\bin\Custom\Snippet
          Attached Files
          Last edited by PaulMohn; 01-05-2024, 12:49 AM.

          Comment


            #6
            The ID / Default / ToolTip added to get straight to the region label:

            Code:
            <?xml version="1.0" encoding="utf-8" ?>
            <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
                <CodeSnippet Format="1.0.0">
                    <Header>
                        <Title>Region</Title>
                        <Shortcut>Rgn</Shortcut>
                        <Description>Builds a skeleton Region</Description>
                        <Author>Mizpah Software</Author>
                        <SnippetTypes>
                            <SnippetType>Expansion</SnippetType>
                        </SnippetTypes>
                    </Header>
                    <Snippet>
                        <Declarations>
                            <Literal>
                                <ID>REGION</ID>
                                <Default>REGION</Default>
                                <ToolTip>REGION</ToolTip>
                            </Literal>
                        </Declarations>
                        <Code Language="csharp">
            <![CDATA[#region $REGION$
            
            #endregion ]]>
                        </Code>
                    </Snippet>
                </CodeSnippet>
            </CodeSnippets>​​
            Note:
            <Shortcut>Rgn</Shortcut>

            Typing 'Rgn' followed by Tab key prompts it (no more need of F2 menu).
            Last edited by PaulMohn; 01-05-2024, 01:09 AM.

            Comment


              #7
              Originally posted by PaulMohn View Post

              Thanks that worked well.

              NinjaTrader_Emily can this snippet be added to the default Ninjatrader installer, so we don't need to mind it for updates?
              And/or get the updates not to overwrite/delete user added snippets?

              C:\Program Files\NinjaTrader 8\bin\Custom\Snippet
              I have submitted this as a feature request to the Development Team and will follow up with an internal tracking number for your reference as soon as it is created.

              Thanks for your patience.

              Comment


                #8
                Hello PaulMohn,

                Thank you for your patience.

                The internal tracking numbers for your feature requests are SFT-4379 and SFT-4267. Please reference these internal tracking numbers when contacting Platform Support if you ever have questions regarding these feature requests.

                When a feature request is implemented, you'll find a description of the new feature in the release notes:Thank you for using NinjaTrader.​

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                612 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                355 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                561 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                564 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X