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.