添加通用语言服务器

添加通用 StdIO 语言服务器:

  1. 转到首选项>Language Client >Add >Generic StdIO Language Server 添加通用语言服务器。

    语言客户端偏好设置中常规选项卡的通用 StdIO 语言服务器

  2. Name 字段中,输入语言服务器的名称。要使用变量作为服务器名称,请选择变量 (Variables)。有关更多信息,请参阅使用Qt Creator 变量
  3. Language 中,选择Set MIME Types ,以选择要发送到语言服务器的文件的 MIME 类型。在下面的字段中,您可以输入文件模式来扩展 MIME 类型,并用分号分隔。
  4. Startup behavior 中,选择语言服务器是在Qt Creator 启动时启动,还是在打开具有匹配 MIME 类型的项目或文件时启动。常规信息显示语言服务器的连接信息。
  5. Initialization options 中,您可以添加语言服务器特定的 JSON 属性,以传递给initialize 请求。
  6. Executable 中,输入语言服务器可执行文件的路径。
  7. Arguments 中,输入任何所需的命令行参数。选择Variables 可使用变量作为参数。

另请参阅 如何:管理语言服务器语言服务器

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.