# Interactive refactoring in gopls

DevFeed: [Interactive refactoring in gopls](<https://devfeed.tech/articles/interactive-refactoring-in-gopls-88793.md>)

Original publisher: [Read original article](<https://go.dev/blog/interactive-refactoring>)

Author: Hongxiang Jiang

Published: 2026-10-16T00:00:00Z

Content type: article

Language: en

Sources: [Go](<https://devfeed.tech/sources/the-go-blog.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>)

Tags: [editor](<https://devfeed.tech/tags/editor.md>), [gopls](<https://devfeed.tech/tags/gopls.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [lsp](<https://devfeed.tech/tags/lsp.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>)

## AI overview

The article introduces interactive refactoring in gopls, using a proposed Language Server Protocol capability to let editors collect input through multi-step dialogs before applying code changes. It describes struct-tag editing and interface implementation, and previews moving declarations between files and packages. Support is available in gopls v0.24.0 and the VS Code Go extension v0.56.0.

## Source excerpt

Introducing interactive refactoring in gopls and the LSP: a new capability that brings dynamic, multi-step refactorings into your favorite editor.