Editor/Editor
Editor
Use the ApiHug editor context menu to create and edit proto files faster inside IntelliJ IDEA.
This page explains the editor-side context actions provided by the ApiHug IntelliJ plugin.
Use these actions when you want to create or edit proto structures directly from the IDE instead of writing every block by hand.
Also see the Shortcut Cheatsheet.
Use the editor assistant when you need to:
proto module and locate src/main/proto.Add Proto File.
Use this flow in files that declare a bean-style document such as:
option (hope.domain.kind) = BEAN;
Available actions include:
Add MessageAdd FieldAdd Field(Reference)
Use this flow in files that declare an IDL-style document such as:
option (hope.domain.kind) = IDL;
Available actions include:
Add ServiceAdd Method
Use this flow in files that declare an enum document such as:
option (hope.domain.kind) = ENUM;
Available actions include:
Add EnumAdd Enum Item
Use this flow in files that declare an error document such as:
option (hope.domain.kind) = ERROR;
Available actions include:
Add ErrorAdd Error Item
Use this flow in files that declare an entity document such as:
option (hope.domain.kind) = ENTITY;
Available actions include:
Add EntityAdd Column
The editor assistant removes a large amount of repetitive proto scaffolding work and helps keep document structure consistent while you are designing contracts.