Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 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
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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