Create getters and setters for struct fields

Generate the support code to access fields indirectly, via getters and setters

Would you like to access your struct fields through getters and setters? Use the dedicated Generate getter and setter action to automatically add all the necessary boilerplate code.

How to use: Select a struct field, then press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) and choose Generate getter and setter from the list of available actions.

Choose which fields should have these methods generated, then press OK to generate them.

Related Resources

Compare With Clipboard
Compare With Clipboard
Compare text, files or directories and even use the clipboard contents.
Custom Structure Tags
Custom Structure Tags
Add custom tags to any fields from structures.
Speed Typing
Speed Typing
Quickly navigate to or filter any list of items in the IDE