It is totally possible to do this with VS Code, as I’m currently doing a similar thing with my project! Here’s a quick guide on how to get it set up.
Note: this is assuming you already have VS Code installed and set up to compile C++. If I recall correctly, you’ll just need the C/C++ extension offered by Microsoft. I’ll look into this to double check I’m not missing something, and I’ll edit this paragraph if I find anything.
I think Code is only supported in 4.18 and onward, but I may be wrong. I don’t have 4.17 installed right now to check if Code support was added in 4.17 or 4.18… Inside the editor, you want to open the Editor Preferences tab. Then, under the Source Code section, set the Source Code Editor option to Visual Studio Code. If Visual Studio Code isn’t in this list, you may need to either install it first (I don’t remember if that matters or not), or you may have to upgrade to 4.18.
Afterward, browse to your project folder, right click YourProject.uproject, and click “Generate Visual Studio project files”. It should be near the top of the context menu, like so:
Once this finishes, you should have a folder named “.vscode”. It might not show up since Windows hides any folder or file whose name starts with a period. If you would like to show hidden files, you can tell the Windows file explorer to do so by clicking View and checking the Hidden Items box.
Now all you have to do is open your main project folder inside VS Code. Code should automatically detect your .vscode folder, allowing you to build your project. The default build command is Control + Shift + B, which pulls up a list of build commands you can run. For normal Hot Reloading with the editor open, you’ll want one of the YourProjectEditor options (most likely the Win64 one, assuming you run the 64-bit editor and are on Windows). It should look something like this (mine says ROTN since that’s my project name, but for you this should be whatever you named your project):
Running the editor build command will recompile your game code and have Hot Reload do its thing while the editor is open. Now you should have Code set up to build your project!
For your second question about actually learning C++ and applying it to UE4, I highly recommend looking into YouTube tutorials. Also, the [UE4 programming guide][4] is a great place to start with UE4-specific coding, and the [UE4 C++ API][5] will be immensely helpful.
I hope this helps you, and let me know if you have any more questions!