Code files can be created through Visual Studio and added to the game project through the **Solution Explorer**
in the usual manner. You can also add code files to the appropriate folders outside of Visual Studio and rebuild
the solution and project files automatically. This makes it easy to add lots of files quickly through the operating system UI, and also makes working on teams
easier as the solution and project files do not need to be synced between members of the team. Each person can
just sync the code files and rebuild the project files locally.
[/PARAM]
[/OBJECT]
[OBJECT:ToggleButtonContent]
[PARAMLITERAL:category]
OS
[/PARAMLITERAL]
[PARAMLITERAL:id]
mac
[/PARAMLITERAL]
[PARAMLITERAL:active]
[/PARAMLITERAL]
[PARAM:content]
Code files can be created through Xcode and added to the game project through the **Project Navigator** in the usual manner.
You can also add code files to the appropriate folders outside of Xcode and rebuild the project file automatically.
This makes it easy to add lots of files quickly through the operating system UI, and also makes working on teams easier
as the solution and project files do not need to be synced between members of the team. Each person can just sync the
code files and rebuild the project files locally.
[/PARAM]
[/OBJECT]
## Opening Projects in the Development Environment
The project files are considered intermediate files - located in `[ProjectDirectory]\Intermediate\ProjectFiles`. This means if you delete your `Intermediate` folder, you must regenerate the project files.
[/REGION]
[/PARAM]
[/OBJECT]
[PUBLISH:Licensee]
### GenerateProjectFiles.bat
**If your project is inside the UE4 root directory:**
There are advanced options available for [](Programming/UnrealBuildSystem/ProjectFileGenerator), which can be used to generate project files for shipping, additional platforms, or Visual Studio 2013.
[/PUBLISH:Licensee]
### .uproject files
[PUBLISH:Licensee]
To get the **Generate Visual Studio Files** menu item to show up in the **right-click** menu for `.uproject` files, you must first run `RegisterShellCommands.bat` in `UE4\Engine\Build\BatchFiles`.
**If your project is outside of the UE4 root directory:**
For advanced project file generation options for projects outside the UE4 root directory, edit the RegisterShellCommands.bat batch file. The Generate Visual Studio projects (all platforms) entry
shows an example of an additional menu entry, in this case with the `-AllPlatforms` flag. The [available options](Programming/UnrealBuildSystem/ProjectFileGenerator) are the same as for the main GenerateProjectFiles.bat file.