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!
See more
See less

Partner 728x90

Collapse

Using Visual Studio Code

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

  • NinjaCustomer
    replied
    I do find the debugger is useful for me sometimes but I've settled into using VS Code for most of the editing, since I'm just more comfortable with it and the themes are better (some are pretty awesome actually) and git is better supported by default. But if I need to debug something I can always fire up VS 2019.

    Leave a comment:


  • RandyT
    replied
    Originally posted by NinjaCustomer View Post
    RandyT did you get the Visual Studio Code debugger working? are there any downsides to visual studio code over 2019? I prefer it as an IDE since I have to use it for other languages as well.
    I was not able to get VSCode to work reliably, but honestly did not give a lot of effort to it. I agree that VSCode is a preferable option to Community and IMO makes a lot more sense for NT to support this option over Community. But the proper way to fire up VS is through the button at the top of the NT Editor. That button is hardwired to look for Community. This appears to assure that some dependencies are loaded into VS to enable intellisense, etc.

    I didn't get the debugger to do much of anything useful and honestly find that prints are usually enough. Again, it would be nice if this was a well integrated option, but not a showstopper for me.

    Leave a comment:


  • NinjaCustomer
    replied
    RandyT did you get the Visual Studio Code debugger working? are there any downsides to visual studio code over 2019? I prefer it as an IDE since I have to use it for other languages as well.

    Leave a comment:


  • RandyT
    replied
    Jesse, thanks for the quick response.

    Actually, I was confused by the fact that the editor launcher button doesn't seem to find my VS Code install. But after starting VS Code the conventional way, I find that even Intellisense for C# and Ninjascript works. (perhaps better than it does in the NT Editor).

    So I am on my way here. Will see if I can get the debugger working.

    Thanks

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    Hello RandyT,

    Thank you for the post.

    While I am unsure if anyone has attempted this with VS Code for debugging specifically, you can certainly use it for a text editor just like any other text editor. As long as the NinjaScript editor is open in the background, it should pick up file changes to compile. You just wouldn't have C# autocompletion or intellesense relevant to the NinjaTrader objects in that use case.

    You are able to use the Free community edition of Visual Studio with NinjaTrader as that natively works with the NinjaScript editors "Visual Studio" launcher button. If you have not reviewed Microsofts community edition of visual studio, that is generally what we suggest for users who do not want to license visual studio but still want the standard editor features it supplies. This is a new product Microsoft started releasing since VS 2015.

    I look forward to being of further assistance.

    Leave a comment:


  • RandyT
    started a topic Using Visual Studio Code

    Using Visual Studio Code

    Curious if anyone has attempted to get Visual Studio Code working as a development editor for NT. Not finding much on this via search.

    Visual Studio Code is free to use and thereby much more accessible to average users. It is a very capable C# development editor. Would appreciate if anyone can shed light on what the potential challenges would be to use it for NT development.

    Thanks

Latest Posts

Collapse

Topics Statistics Last Post
Started by LawrenHom, Today, 10:45 PM
0 responses
3 views
0 likes
Last Post LawrenHom  
Started by love2code2trade, Yesterday, 01:45 PM
4 responses
28 views
0 likes
Last Post love2code2trade  
Started by funk10101, Today, 09:43 PM
0 responses
7 views
0 likes
Last Post funk10101  
Started by pkefal, 04-11-2024, 07:39 AM
11 responses
37 views
0 likes
Last Post jeronymite  
Started by bill2023, Yesterday, 08:51 AM
8 responses
44 views
0 likes
Last Post bill2023  
Working...
X