Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.66 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.66 KB

MonoGame for VS Code

MonoGame for VS Code streamlines the experience of using MonoGame in Visual Studio Code. It ports key features of the Visual Studio 2022 MonoGame extension to VSC, including:

  • Automatically install MonoGame templates
  • Create new projects from the file menu or command palette
  • Open the MGCB editor with the click of a button

Requirements

Quick Start

To create your first MonoGame project in VS Code:

  1. Install the .NET SDK and C# Dev Kit. Restart VS Code, then install this extension.
  2. Go to File > New File... > MonoGame: New Project.

New Project

  1. Choose a project template (if you aren't sure, choose Cross-Platform Desktop Application).
  2. Enter project name and directory.

You're good to go! Your new project will be created at the directory. The solution explorer (a feature from the C# Dev Kit) should appear in the sidebar, allowing you to build, run and debug your game:

Solution Explorer

To open the MGCB editor, click the MonoGame button in the editor title bar or search for MonoGame: Open MGCB Editor in the command palette.

MGCB Button

Templates are installed automatically the first time the extension is activated, but if you need to reinstall, you may use the MonoGame: Install command.

License

MIT © reflector88