-
Does somebody know how to properly configure F' project, so that I can properly navigate through it without red line warnings of VSCode? What extensions should be used for it? Cmake, C/C++ externsion? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I have been messing with VSCode settings for a while, so figured I would do a little config-dump here Useful extensions
IntelliSenseIn
This can be made more efficient by pulling the actual list of include paths from the CMake cache, but Debug F´ App with CMake extensionThis was tricky to set up, but allows to debug F´ C++ in VSCode. The issue is that VSCode by default run in a fresh environment to run the CMake build steps. However we need an F´ environment to have access to the FPP tools etc. Therefore we have to add configuration for CMake to know where to find them. I have in the below example used a conda environment so I can isolate it further, but likely a Python venv should be sufficient too.
Then in the CMake tab of VSCode, you can search for your deployment's target, and build/run/debug it! 🎉 Debug FPP / Scala codeCaveats: need to open
|
Beta Was this translation helpful? Give feedback.
-
If you follow the standard F´ project format (virtual environment named You still need the above settings at some point, but only when you need more advanced features.
|
Beta Was this translation helpful? Give feedback.
-
@thomas-bc and @LeStarch very grateful for your responses but to be honest it is a little bit difficult to catch for newbie(like me). I'll be very grateful for step by step tutorial for VS code configuration based on some other tutorial (for example Hello world) |
Beta Was this translation helpful? Give feedback.
I have been messing with VSCode settings for a while, so figured I would do a little config-dump here
Useful extensions
IntelliSense
In
settings.json
(either at User level, or within your workspace):