Announcement
Collapse
No announcement yet.
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.
-
Hello trader-ap,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"
Comment
- https://ninjatrader.com/support/help..._debugging.htm
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment