We already know that user-defined types such as structures and enums can be created and edited through the corresponding views, or the Local Types list.
However, some small edits can be performed directly in the pseudocode view:
These actions also work on stack variables because they behave like fields of the stack frame structure.
If you prefer to use the free-form C syntax editor to see and edit the whole structure, you can quickly navigate to the type using the “Jump to local type” action from the context menu and then use “Edit” (Ctrl–E) on the type’s entry:
See also:
Igor’s tip of the week #99: Enums
Igor’s tip of the week #42: Renaming and retyping in the decompiler
Igor’s tip of the week #11: Quickly creating structures