Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 840 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
VSCode for Zorro development #476881
04/18/19 10:52
04/18/19 10:52
Joined: Apr 2019
Posts: 2
T
ThePituLegend Offline OP
Guest
ThePituLegend  Offline OP
Guest
T

Joined: Apr 2019
Posts: 2
Hi!

I'd love to know if anyone have sucessfully used VSCode. Right now I use it as a mere 'enhanced text editor', but I'd like to use it in all i'ts glory (step by step debug, proper Lite-C symbol resolving and all that stuff).

Can anyone tell me about his/her experience?
Thanks!

Re: VSCode for Zorro development [Re: ThePituLegend] #476882
04/18/19 11:32
04/18/19 11:32
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
If you know how to debug any DLL in visual studio, you know exactly what to expect. It works pretty well.

Re: VSCode for Zorro development [Re: AndrewAMD] #476883
04/18/19 11:51
04/18/19 11:51
Joined: Apr 2019
Posts: 20
K
kankan Offline
Newbie
kankan  Offline
Newbie
K

Joined: Apr 2019
Posts: 20
Originally Posted By: AndrewAMD
If you know how to debug any DLL in visual studio, you know exactly what to expect. It works pretty well.


But this would only work if you are using C++ and not Lite-C I am assuming?

Re: VSCode for Zorro development [Re: kankan] #476884
04/18/19 13:04
04/18/19 13:04
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Correct.

To be clear, I am referring to this:
https://zorro-project.com/manual/en/dlls.htm

Combine this with knowledge on how to use C++ with VSCode:
https://code.visualstudio.com/docs/languages/cpp

...anyways, C++ is a first-class citizen in the original Visual Studio, but VSCode also works well as a C++ debugger.

Re: VSCode for Zorro development [Re: AndrewAMD] #476889
04/18/19 13:44
04/18/19 13:44
Joined: Apr 2019
Posts: 2
T
ThePituLegend Offline OP
Guest
ThePituLegend  Offline OP
Guest
T

Joined: Apr 2019
Posts: 2
Okay, I see the point.

It is possible to compile a DLL in VSCode (to avoid jumping from VS to VSC all the time)? Maybe that question is out of the scope of this forum, but if anyone knows...

Thank you all!

Last edited by ThePituLegend; 04/18/19 13:45.
Re: VSCode for Zorro development [Re: ThePituLegend] #476890
04/18/19 13:49
04/18/19 13:49
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
The compiler is the Visual C++ Compiler. Both VS and VSCode can act as frontends for the compiler.

So yes, but technically no. laugh

Re: VSCode for Zorro development [Re: ThePituLegend] #482600
03/05/21 11:47
03/05/21 11:47
Joined: Feb 2021
Posts: 2
S
Sysmet Offline
Guest
Sysmet  Offline
Guest
S

Joined: Feb 2021
Posts: 2
Is anyone using VSCode for Zorro development after 2 years? Maybe someone have made snippets with Zorro's dictionary and willing to share?
https://code.visualstudio.com/docs/editor/userdefinedsnippets

Re: VSCode for Zorro development [Re: ThePituLegend] #482612
03/06/21 00:57
03/06/21 00:57
Joined: Oct 2017
Posts: 56
Munich
K
kalmar Offline
Junior Member
kalmar  Offline
Junior Member
K

Joined: Oct 2017
Posts: 56
Munich
I use VSCode, but just as IDE. Somehow I find it more convenient than Notepad++ and I could switch to Python environment quickly.

Re: VSCode for Zorro development [Re: ThePituLegend] #482613
03/06/21 12:51
03/06/21 12:51
Joined: Feb 2021
Posts: 2
S
Sysmet Offline
Guest
Sysmet  Offline
Guest
S

Joined: Feb 2021
Posts: 2
VSCode is an amazing open source editor. In my opinion, the best currently available.
It would be great if JCL support somehow some integration of Zorro to VSCode (snippets, function definitions, debugging, etc). Maybe a Zorro extension for VSCode?

Re: VSCode for Zorro development [Re: ThePituLegend] #482630
03/09/21 19:51
03/09/21 19:51
Joined: May 2020
Posts: 27
Germany
M
Morris Offline
Newbie
Morris  Offline
Newbie
M

Joined: May 2020
Posts: 27
Germany
I am quite happy using VSCode for Zorro, and the auto-completion ("Intellisense"), function definition (F12) etc. all work out of the box (with C/C++ extension), no configuration or snippet definition needed. (No debugging, though, of course, because VSCode does not have a Lite-C runtime.) If you put "#include <default.c>" at the top of your file, VSCode will pick up all of the definitions.

Re: VSCode for Zorro development [Re: ThePituLegend] #482633
03/10/21 12:38
03/10/21 12:38
Joined: Oct 2017
Posts: 56
Munich
K
kalmar Offline
Junior Member
kalmar  Offline
Junior Member
K

Joined: Oct 2017
Posts: 56
Munich
Thank you for advise, Morris. Could you pls explain this "#include <default.c>" thing. My strategies are not in the original Zorro folder. How would VSCode find <default.c>, which is located in "Zorro/Include"?

Re: VSCode for Zorro development [Re: ThePituLegend] #482640
03/11/21 22:50
03/11/21 22:50
Joined: May 2020
Posts: 27
Germany
M
Morris Offline
Newbie
Morris  Offline
Newbie
M

Joined: May 2020
Posts: 27
Germany
Hi kalmar, you set the include path in VSCode accordingly. It's a bit hidden in c_cpp_properties.json (in Command Palette, choose "C/C++: Edit Configurations (JSON)", and add your Zorro include path (with forward slashes) to configurations/includePath in the json file). VSCode will then pick up everything from Zorro by itself.

Re: VSCode for Zorro development [Re: ThePituLegend] #485827
04/27/22 07:11
04/27/22 07:11
Joined: Apr 2022
Posts: 21
H
HamzaAhmed Offline
Newbie
HamzaAhmed  Offline
Newbie
H

Joined: Apr 2022
Posts: 21
Yes, VSCode picks up for intellisense and go to definition. However, if one knew the compiler Zorro is using then we could point VSCode to use it and probably get IDE debugging.... ?

Re: VSCode for Zorro development [Re: ThePituLegend] #488153
03/31/24 08:51
03/31/24 08:51
Joined: Jan 2022
Posts: 58
N
NorbertSz Offline
Junior Member
NorbertSz  Offline
Junior Member
N

Joined: Jan 2022
Posts: 58
Hello,

I made a handy project template for developing and compiling directly from the VSCode IDE.
https://github.com/szabonorbert/zorro-vscode-template

Last edited by NorbertSz; 03/31/24 08:53.
Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1