So I have just installed vscode on ubuntu at version: 1.27.2. I have installed the extension for c++ as well.
Its all working nicely, except that I cant seem to use the refactor actions. Specifically I want to use the rename symbol (f2).
When I click a variable and press f2 nothing happens. If I do ctrl+shift+r (refactor actions) I always get "no refactorings available".
I checked the key-bindings and it shows for "f2":
- Command: Rename Symbol
- Keybinding: F2
- Source: Default
- When: editorHasRenameProvider && editorTextFocus && !editorReadonly
So I checked that the editor is writeable and text has focus - both true. But I am not sure what this editor has rename provider is?
So I need to install something else? - how can I get refactoring working?
Update
This has now been implemented in vscode-cpptools extension: version v0.26 called "rename symbol".