• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Visual Studio Code

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

    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

    #2
    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.
    JesseNinjaTrader Customer Service

    Comment


      #3
      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

      Comment


        #4
        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.

        Comment


          #5
          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.

          Comment


            #6
            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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by yrch1985, 11-03-2019, 11:49 AM
            8 responses
            90 views
            0 likes
            Last Post aligator  
            Started by Dr3am, Today, 05:10 PM
            0 responses
            2 views
            0 likes
            Last Post Dr3am
            by Dr3am
             
            Started by imalil, Today, 04:28 PM
            0 responses
            3 views
            0 likes
            Last Post imalil
            by imalil
             
            Started by bboyle1234, Today, 03:47 PM
            0 responses
            1 view
            0 likes
            Last Post bboyle1234  
            Started by caveat_lector, Today, 03:46 PM
            0 responses
            7 views
            0 likes
            Last Post caveat_lector  
            Working...
            X