is there a way to do it?
You have two plugins for that.
Code View and Code Editor, this last one is still in an experimental state.
how do i use them?
You can activate them in Window → Plugins → Programming → CodeEditor, same with the Code View.
For the Code editor, once it is activated you can go to File > Project > Edit Source Code and you will be able to view and edit your c++ files inside the editor.
i want to use VS Code
I’m sorry, I completely misunderstood the question.
I never used VS Code, but I think this is possible, maybe this can help: Unreal C++ with Visual Studio Code – Jolly Monster Studio