ESP32 in vs Code

Is there a way to use FreeRTOS in Visual Studio Code, I can programm in the Arduino IDE but if i copy the code to vs code it underlines some parts red. Is there a freeRTOS library or what do i have to do to make it run?

As you said you are using ESP32 and Arduino, you should be able to choose from the following: