Skip to content

seclerp/rider-monogame

Repository files navigation

MonoGame plugin for JetBrains Rider

Logo

This plugin improves MonoGame usage experience inside JetBrains Rider.

Build

MGCB file editing

How to use 1

Autocomplete and syntax highlighting

All supported MGCB options properly highlighted and could be autocompleted



How to use 1

Build entries previewer

See all your assets in a realtime tree view according to their declarations



How to use 1

Table view for a build entry properties

Review build entry properties and processor parameters in a table representation



How to use 1

Open in external MGCB editor action

Jump to external MGCB editor GUI in one click


Other

How to use 1

Additional file templates

Easily create MonoGame related assets using file templates under Add menu



How to install

Using marketplace:

For EAP users: you should add https://plugins.jetbrains.com/plugins/eap/list to your plugin repositories list before installing

  1. Go to Settings / Plugins / Marketplace
  2. Search for "MonoGame"
  3. Click Install, then Save
  4. After saving restart Rider

Using .zip file

  1. Go to Releases
  2. Download the latest release of plugin for your edition of JetBrains Rider (Stable or EAP)
  3. Proceed to Settings / Plugins / / Install plugin from disk
  4. Click Save
  5. After saving restart Rider

How to use

Just open .mgcb file for editing. Previewer will be on the right side of the editor.

Additional file templates are located under Add section of a folder or project context menu.

Requirements

  • JetBrains Rider 2022.3+

  • Project with MonoGame installed (3.8+ is recommended)

Note: Projects with older versions of MonoGame might work, but with issues

Development

Note: You should have JDK 11 and .NET SDK 5.0+ installed and configured.

Preparing

./gradlew rdgen - generates RD protocol data for plugin internal communication

Building plugin parts

  • for stable version of Rider:

    ./gradlew buildPlugin

  • for EAP version of Rider:

    ./gradlew buildPlugin -PRiderSdkVersion=2022.3.0-eap01 -PProductVersion=2022.3-EAP1-SNAPSHOT

It will build both frontend and backend parts.

Running

Next command will start instance of JetBrains Rider with plugin attached to it:

./gradlew runIde

Contributing

Contributions are welcome! 🎉

It's better to create an issue with description of your bug/feature before creating pull requests.

About branching

This project uses customized git strategy.

Each release/* branch plays main development branch role for specific release.

For example, release/222 means that branch is related to 222.* release cycle for 2022.2 Rider version.

See also