Add generic language servers | Qt Creator Documentation

- Qt Creator Documentation
- Add generic language servers
- Qt Creator 15.0.0

How To

# Add generic language servers

To add a generic StdIO language server:

1. Go to Preferences > Language Client > Add > Generic StdIO Language Server to add a generic language server.

2. In the Name field, enter a name for the language server. Select the (Variables) button to use a variable for the server name. For more information, see Use Qt Creator variables.
3. In the Language field, select Set MIME Types to select the MIME types of the files to send to the language server. In the field below, you can enter file patterns to extend the MIME types, separated by semicolons.
4. In the Startup behavior field, select whether the language server is started when Qt Creator starts or when a project or file with a matching MIME type is opened. General Messages displays information about the connection to the language server.
5. In the Initialization options field, you can add language server specific JSON attributes to pass to an `initialize` request.
6. In the Executable field, enter the path to the language server executable.
7. In the Arguments field, enter any required command-line arguments. Select Variables to use variables as arguments.

See also How To: Manage Language Servers and Language Servers.

How To