search

Sunday, June 14, 2020

Unable to rename in go projects in vscode

vscode used to use gorename to do the renames. However, gorename does not support go modules. gopls should be used instead. If it is not available to your project, try to add the following in your configuration file:
"go.languageServerExperimentalFeatures": {
    "rename": true
}