Refactoring

Refactoring

Keep your code solid, dry, and easy to maintain.

Refactoring is a process of improving your source code without creating a new functionality. It helps you keep your code solid, dry, and easy to maintain.

See Also

Part of tutorial

Refactoring
Refactoring code for understanding

tip

Refactor rename with AI Assistant
Use the power of AI Assistant for even better naming suggestions

tip

Extract Method
Extract code to a new method

tip

Inline Variable
Inline a variable in your code

tip

Introduce variable
Refactor your code and introduce a new variable

tip

Generate Code
Helps you to generate commonly used code constructs

playlist

Highlights of GoLand 2023.3
Explore key features and enhancements in GoLand 2023.3.

tip

Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice

tip

Introduce parameters from unresolved references in your code
Change a function or method signature by introducing parameters directly from unresolved references

tip

Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions

tip

Use collection initializers
Update and initialize items in old collection declarations

tip

Rename refactoring
Would a variable by any other name read as clearly?

tip

Extract method refactoring
Split and Organize code into DRY, discrete units.

tip

Inline method refactoring
Replace usages of a function with its implementation.

Part of tutorial

Replace Assets
Replace assets on your scene. It's like refactoring, but visually!

tip

C# 11 - Required Keyword
Introducing the required keyword for fields and properties.

tip

Refactor Rename
Renaming classes, methods, and variables in IntelliJ IDEA

tip

C# 11 - Raw strings
There is no escape!

tip

Extract Variable
Extract code to a variable

tip

Refactor this
Refactoring options for the selection

tip

Merge/Unmerge If Statements
Experiment with your code without changing the semantics

tip

Find & Select Multiple Occurrences
Select multiple occurrences of the same word and change them all at once

tip

Inject a language
Language injections let you work with pieces of code in other languages embedded in your code.

tip

Pattern Matching for Switch
Available in preview from Java 17

tutorial

Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.

tip

Manage VCS Changelists in IntelliJ IDEA
Group and commit changes related to certain tasks

tip

Write SQL queries using popular database packages
Work with SQL queries and get completion and other features automatically.

tip

Refactor names in React useState hooks
Rename both values of from useState hooks at once

tip

Extract Type Refactoring
Extract a type into its own definition and improve the reusability in your code

tip

Rename Go module refactoring
Upgrade Go modules to newer versions with ease

YouTube

Legacy Refactoring
Lorraine Steyn

Part of tutorial

Refactoring Code with ReSharper
How to safely refactor code, without breaking the build? Let's have a look.

tip

Add Overload Bool
You can refactor a method to change its signature

tip

Assert That Import
Use quick intentions to manage imports

tip

Change Method Signature
Refactor the signature of a method

tip

Remove Unnecessary Condition
Use quick intentions to remove redundant code

tip

Convert Concatenation To Template
Use quick intentions to convert to a template string

tip

Convert to Expression Body
Use quick intentions to convert to use expression body syntax

tip

Extract Constant
Extract a value to a constant

tip

Extract Field
Extract code to a field

tip

Extract Parameter
Extract code to a parameter in Kotlin

tip

Extract Parameter
Extract code to a parameter

tip

Extract Variable
Extract code to a variable

tip

Inline a method
Inline a method

tip

Meaningless Arguments
Use quick intentions to remove redundant code

tip

Rename an Interface
Renaming in IntelliJ IDEA including comments and texts

tip

Replace with var
Use quick intentions to replace a local variable type with `var`

tip

Refactor an Unreachable Statement
Use quick intentions to remove redundant code

Part of tutorial

Refactoring
See how the IDE helps you safely refactor code, without breaking existing code.

tip

Rename a File and Its References
Change your mind on a file name, and the IDE makes all the changes for you.

tip

Rename Symbol
Change a variable name, class name, or other symbol, across the project.

Part of tutorial

Refactoring code in Rider
Learn how to safely refactor code, without breaking the build.