You can inline a constant or function at the caret by pressing &shortcut:Inline; (Refactor | Inline ). GoLand will update all references of the constant and replace them with the value.