Through our built-in YAML editor, users can create and edit resources right in the Red Hat OpenShift Web Console UI. In the latest release, we’ve upgraded our editor to include language server support.

What is language server support?

The language server support feature uses the OpenAPI schema from Kubernetes to provide content assist inside the YAML editor based on the type of resource you are editing. More specifically, the language server support offers the following capabilities:

  1. Improved YAML validation: The new editor provides feedback in context, directing you to the exact line and position that requires attention.
  2. Document outlining: Document outlines offer a quick way to navigate your code.
  3. Auto completion: While in the editor, language server support will provide you with valid configuration information as you type, allowing you to edit faster.
  4. Hover support: Hovering over a property will show a description of the associated schema.
  5. Advanced formatting: Format your YAML.

 

Why did we add language server support?

Because it’s awesome! With language server support, we improve users’ workflow by making it faster and easier to create and edit resources in the YAML editor. Specifically for novice users, these features can accelerate the learnability of Kubernetes concepts. This experience may look familiar; this utilizes the same editor and language server framework that is used in other tools like Eclipse Che or Visual Studio (VS) Code editor.

How can you use language server support?

Language server support is available in all YAML editors in the console, whether you are creating or editing resources.

Hover over a key to see more information. For example, while creating a Pod you can hover over a key such as containers. This will give you more information about the containers in the Pod and how you can define them using YAML.

When available, the property help will link out to more documentation around that property.

Use Ctrl + Space to activate auto complete.

If you’d like to learn more about what the OpenShift team is up to or provide feedback on any of the new 4.2 features, please take this brief 3-minute survey.


关于作者

UI_Icon-Red_Hat-Close-A-Black-RGB

按频道浏览

automation icon

自动化

有关技术、团队和环境 IT 自动化的最新信息

AI icon

人工智能

平台更新使客户可以在任何地方运行人工智能工作负载

open hybrid cloud icon

开放混合云

了解我们如何利用混合云构建更灵活的未来

security icon

安全防护

有关我们如何跨环境和技术减少风险的最新信息

edge icon

边缘计算

简化边缘运维的平台更新

Infrastructure icon

基础架构

全球领先企业 Linux 平台的最新动态

application development icon

应用领域

我们针对最严峻的应用挑战的解决方案

Virtualization icon

虚拟化

适用于您的本地或跨云工作负载的企业虚拟化的未来