I only tested on OSX but it should be easy to use it in different OS thanks to oF’s Make system.
Currently vscode + C++ has problem of auto completion but it’s quicker than Xcode when jump around your source tree. VS code is lightweight and cross platform(it works on RPi as well!) it might be one of your IDE in 2018.
Eventually I will add Windows and Linux support.
Thanks!
So far I’m thinking it’s difficult. If we add vscode support to PG, it means oF also need to support it officially. There are already many IDE support and it looks big job to make sure oF works fine with all of IDEs. Adding vscode support could be another burden to the oF core dev team. In addition, probably there’s not so many vscode + oF users and demands.
But o understand your point that indeed it would be nice to have a tool to generate vscode project. maybe we can make a small scripts. vscode project file is cross platform, (I forgot but just a json file?). It won’t be difficult.
just my 2 cents, VS code is a lovely editor, much better than Qt creator… of course one is an editor and the other an IDE, they are apples and oranges, but… I’d love to see an of version for it
i did a script to generate vs code oF projects, but only for linux:
By parsing the addons.make it adds all the addons to the workspace, adds the right paths for intellisense and it also create the right settings for debugging using gdb.
It could be a good starting point for project generator integration, at the moment VSCode seems the best IDE* you can find on Linux.
Great work! But maybe I miss something – how is it possible to add addons to the project so that they compile?
I can see the addons folder in the workspace, I’ve also added the particular addon’s path to includePath and browse.path in c_cpp_properties.json, I’ve included the addon’s name in the addons.make file, but I’m still getting this when trying to build:
fatal error: ‘ofxOsc.h’ file not found #include “ofxOsc.h”
I’m on OS 10.12.6 and oF 0.10.1 with C++ from Microsoft and C++ Intellisense installed. I’ve got no idea what could be done more. Please, help!
By the way the new release of VS code implements remote editing and debugging in various flavors, just having a peek at that now but it looks very promising
According to the docs it should work, I had some issues but didn’t really try that hard. The blog post about the feature is here
[EDIT] Once tasks.json and launch.json are properly configured remote building and debugging works like a charm, you have all console messages in VScode terminal.
Just be careful to add
"env": {"DISPLAY":":0"},
to the linux section of launch.json, so that OF application will be able to find and open the X11 display. Assuming that remote host is Linux, of course.