# Replacing Direct Field Access with a Getter in IntelliJ IDEA

DevFeed: [Replacing Direct Field Access with a Getter in IntelliJ IDEA](<https://devfeed.tech/articles/a-cool-refactoring-hidden-in-intellij-idea-29050.md>)

Original publisher: [Read original article](<https://dmitrysamoylenko.com/2020/07/06/cool_intellij_idea.html>)

Author: Dmitry Samoylenko

Published: 2020-07-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dmitry Samoylenko - Android Developer Blog](<https://devfeed.tech/sources/dmitry-samoylenko-android-developer-blog.md>)

Topics: [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [Code](<https://devfeed.tech/topics/code.md>), [jetbrains](<https://devfeed.tech/topics/jetbrains.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [intellij](<https://devfeed.tech/tags/intellij.md>), [intellij-idea](<https://devfeed.tech/tags/intellij-idea.md>), [jetbrains](<https://devfeed.tech/tags/jetbrains.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>)

## AI overview

A tutorial on using IntelliJ IDEA refactoring tools to replace direct field access with a getter throughout a codebase.

## Source excerpt

This is about replacing field access with a getter By default, there's a visible refactoring option for this through alt+insert - getter.