Rust in vscode with rust-analyzer: Select the symbol, cmd+shift+p to get the command palette, type rename and select 'rename symbol'. Or right click and pick rename symbol.
You can undo/redo with cmd+z or cmd+shift+z.
replace cmd with ctrl on linux or windows.