How to configure VS Code for Zorro

Posted By: TrumpLost

How to configure VS Code for Zorro - 04/12/22 05:20

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.
Posted By: jcl

Re: How to configure VS Code for Zorro - 04/13/22 11:45

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.
Posted By: HamzaAhmed

Re: How to configure VS Code for Zorro - 04/28/22 05:45

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.
© 2024 lite-C Forums