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
Visual Studio and Auto Compile NinjaScript after File Save
Collapse
X
-
Visual Studio and Auto Compile NinjaScript after File Save
Is there a way to configure NT8 to compile a .cs indicator or strategy file when a file being edited in Visual Studio is Saved. Just want to avoid the step of having to go to NT8 Editor to press compile everytime.Tags: None
-
Yes, just keep the NT editor window open.
Every time it notices that a .cs file timestamp has
changed (because VS Studio edit/save file) it
will automatically recompile.
Btw, when the NT Editor compiles a .cs file, you do
know that it compiles everything -- yep, it re-compiles
every single .cs file every time it compiles.
I use VIM and this 'leave the NT Editor window open
for auto re-compiles' feature is a great time saver.
I don't know if there are any options that control
this feature, I found it by accident long ago.
-
Originally posted by trader-ap View PostIs there a way to configure NT8 to compile a .cs indicator or strategy file when a file being edited in Visual Studio is Saved. Just want to avoid the step of having to go to NT8 Editor to press compile everytime.
Thank you for your note.
bltdavid is correct - as long as you have a NinjaScript Editor window open while using Visual Studio, every time you save a file the editor will detect the save and auto-compile. This is mentioned in the Tip at the bottom of the following page:- https://ninjatrader.com/support/help..._debugging.htm
- "Tip: You can also use Visual Studio as an editor for your NinjaScript files - for that open the project as in step 2 above and then use Visual Studio for editing and once done save the file (don't run or build the solution then in Visual Studio), preferably with the NinjaScript editor opened still at the same time, so changes would be auto compiled"
Emily C.NinjaTrader Customer Service
Comment
- https://ninjatrader.com/support/help..._debugging.htm
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pibrew, Today, 06:37 AM
|
0 responses
0 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
Comment