Skip to content

Structure and Field Naming

The structure and field naming feature suggests names for structures and fields to improve your understanding of the data structures in your binary.

How it works

The structure and field naming feature works on a per-component basis. It submits a representative sample of the component to the Sidekick service, which uses a language model to suggest names for the structures and fields.

How to use it

If structures have been recovered for the current component, then during Sidekick's process for making general suggestions, Sidekick may generate suggestions for naming structures and fields. To apply these suggestions, select each suggestion you want to apply (using Cntrl + Click or Shift + Click depending on the desired selection scope) and perform any of the following actions:

  • Click on the Accept selected suggestions button
  • Right-click and select Apply

To manually request and apply suggestions for naming structures and fields in the current function, perforom the following actions:

  • Select Suggest Struct/Field Names from the hamburger menu in the Sidekick Suggestions sidebar, or select Suggest Struct/Fields Names for Current Function from the Plugins->Sidekick main menu
  • Select each generated suggestion you want to apply following the same actions above for applying general suggestions

To recover structures for the current component, follow the instructions here.

How to customize it

The sidekick.suggestions.field_naming_convention setting controls the naming convention. You can configure the naming convention independently for structs and fields. The following options are available:

Value Description
any Use whatever names are generated by the model.
snake Formats the variable name as snake_case.
camel Formats the variable name as camelCase.
pascal Formats the variable name as PascalCase.