I have disable "Inline syntax checking" in the Editor but still after type in any wrong code or even not complety code all #region #endregion parts expand and the line jumps to another place. This is really a bad behavior. How can i change this " auto expand regions " part ?
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!
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
NinjaTrader
Inline syntax checking .. expand #region #endregion
Collapse
X
-
Inline syntax checking .. expand #region #endregion
Hi
I have disable "Inline syntax checking" in the Editor but still after type in any wrong code or even not complety code all #region #endregion parts expand and the line jumps to another place. This is really a bad behavior. How can i change this " auto expand regions " part ?Tags: None
-
Hello,
Thank you for the post.
In this case, I could only suggest that you either dont use Regions in the specific case that you are now or you could use an outside editor such as Visual Studio. If you have a sample that reproduces the problem I could review the sample and see if there is anything that can be changed in the script to prevent that from happening also.
There are some known limitations surrounding regions and the NinjaScript editor (actipro syntax editor). NT8 does have a newer version of the editor so it is possible that going forward the regions as you have them now will work as you expect. I could suggest trying the same general region setup in NT8 if you have it installed and if there is a problem I could submit a bug report along with your sample.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Sorry, wrong Forum. I use NT8 and i have this problem with NT8.
I must use #region #endregion
Without this nobody can read > 5000 lines code...
one example :
i just type " if "
and after 100 ms the inline syntax checking realized :
this code is wrong and expands the next full region
of course this is wrong, but i am still working on the "( ) " after if.
why there is a "Inline Syntax Checking" enable/disable box ?
This box should be disable this behavior or not ?Last edited by jr123; 03-09-2018, 11:08 AM.
Comment
-
Hello,
Thank you for clarifying, I will move your post to the correct forum.
In this case, if you have a sample I could review it and see if anything could be done surrounding how the region is currently being used in that script. As Visual studio is now fully supported I would suggest using that over the NinajScript editor especially if you have a large code base. You can download the community edition for free at Microsoft's website.
Another approach would be to utilize the features of C# structure to break the script into smaller scripts preventing the need for regions altogether. As the platform compiles all items in the custom folder together you are free to create multiple .cs files that are interconnected like a standard C# application. Moving utility methods or syntax you have in your current script into external scripts would help reduce its size.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Graci117, Today, 09:02 PM
|
1 response
4 views
0 likes
|
Last Post Today, 09:09 PM | ||
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
7 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:55 PM
|
||
Started by janio973, Today, 07:24 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:35 PM | ||
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
244 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
14 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
Comment