

VS Code uses the Microsoft Visual C++ compiler (MSVC) toolset on Windows. The installation process for each one is straightforward, but each requires you to look in a different place to initiate setup. If you use this method, you do not need to change your default source code editor.Įach desktop OS uses a different compiler toolset to compile projects in VS Code. vscode workspace instead of a Visual Studio. Adding the -vscode parameter will make a. In a command line, run /GenerateProjectFiles.bat -vscode. code-workspace file in your project's folder.

uproject file and click Generate Project Files. On Windows and Mac, right-click your project's. Open Unreal Editor and click Tools > Refresh Visual Studio Code Project. This is not necessary to generate a VS Code solution (see step 5c), but it becomes the default instead of Visual Studio. Restart the editor for the change to take effect. If you need to set VS Code as your default IDE, open Unreal Editor and go to Edit > Editor Preferences > General > Source Code, then set your Source Code Editor to Visual Studio Code. If you are debugging on Mac or Linux, download and install the LLDB extension. Windows: The Microsoft Visual C++ (MSVC) compiler toolset.įor details about how to set up these components, refer to Installing the Compiler Toolset. These are required for reading the source code for both Unreal Engine and its Build Tools.ĭownload and install the compiler toolset for your OS. Installing VS Code and Required Extensions for Your OSĭownload and install VS Code as well as the official C/C++ extension pack and C# extension for VS Code. This guide assumes that you have installed Unreal Engine and created a C++ project with it. You do not need a full Visual Studio installation to use VS Code.
