Warning

This is the dev documentation for an unreleased version of MPF!

This is the documentation for MPF 0.56+, which is the “dev” (next) release of MPF that is a work-in-progress. Unless you’re specifically looking for this version, you probably want to use the version of documentation called “latest” which is for the latest released version of MPF. That documentation is at docs.missionpinball.org/en/latest.

Using the MPF Language Server in Your IDE to Edit Configs

The MPF language service implements the language server protocol (LSP) to bring syntax highlighting, auto completion, diagnostics and more to numerous IDEs (and not just to one of them). Your IDE most likely supports LSP either directly or via a plugin. Even some text editors (such as Sublime) support LSP.

You can also follow our video about the perfect IDE setup:

Features

The MPF language server helps you to efficiently write MPF config. In the following you find a selection of the features.

Context Help

../../_images/language_server_context_help.png

Hover over a setting and the LSP will give you context about the type. In the future this will also show you the documentation entry about this setting.

Error Highlighting

../../_images/language_server_error_highlighting.png

Auto Completion

../../_images/language_server_auto_complete.png ../../_images/language_server_auto_complete_attributes.png ../../_images/language_server_auto_references.png

Go To Definition

../../_images/language_server_go_to_definition.png

Installation

See the Language Server Documentation for now.