Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to configure VS Code for Zorro #485671
04/12/22 05:20
04/12/22 05:20
Joined: Feb 2022
Posts: 21
T
TrumpLost Offline OP
Newbie
TrumpLost  Offline OP
Newbie
T

Joined: Feb 2022
Posts: 21
I set my EditorPath value in Zorro.ini to my VS Code path, and everything seems to just work, however there's still an issue. I'd like to be able to open the entire Zorro directory in VS Code so I can open multiple files from the file explorer sidebar, but when I open either the Zorro root folder, or Zorro/Strategy, VS Code shows errors. I've tried adding
Code
#include <default.c>
to the top of my file, as I saw another poster claimed having success with this, but for me, I have an error on every line that ends with a
Code
)
, and the message says
Quote
too few arguments in function call C/C++ (165)
.

Does anyone know how to configure VS Code for Zorro? I'm not a C developer, and a lot of the links I'm seeing claim that the same methods of configuring Visual Studio for C/C++, work for VS Code, but I don't know what those configuration steps would be, Zorro or otherwise.

Re: How to configure VS Code for Zorro [Re: TrumpLost] #485677
04/13/22 11:45
04/13/22 11:45
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
I don't use VS code, but you use it for lite-C, not for C++, undefine WIN32 before including defaut.c.

#undef WIN32
#include <default.c>

Not sure if that fixes it, but that's the first thing I'd try.

Re: How to configure VS Code for Zorro [Re: TrumpLost] #485846
04/28/22 05:45
04/28/22 05:45
Joined: Apr 2022
Posts: 21
H
HamzaAhmed Offline
Newbie
HamzaAhmed  Offline
Newbie
H

Joined: Apr 2022
Posts: 21
If you load the Strategy folder as a workspace in VSCode then inside the stragety folder locate a settings.json file and then ensure the contents of the file are the following

Code

{
    "C_Cpp.errorSquiggles": "Disabled"
}



Since we are not using the VSCode compiler to compile Lite-C the syntax errors do not matter at least in VSCode.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1